summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-04-28 13:57:31 -0700
committersteven-na <noreply.github@stvnc.dev>2026-04-28 13:57:31 -0700
commitbab234423fffaf492f6617b53c11d865b8a21815 (patch)
tree66f16cdd9b9b2ce32ab4339893288044119baf0f /arch
parentf131fac65e297c1322edf88bd571a4282171596d (diff)
zen, bar, binds
Diffstat (limited to 'arch')
-rw-r--r--arch/eww/.config/eww/eww.yuck7
-rw-r--r--arch/hyprland/.config/hypr/hyprland.conf1
-rw-r--r--arch/hyprland/.config/hypr/keybinds.conf4
-rwxr-xr-xarch/install.sh10
-rwxr-xr-xarch/scripts/.local/bin/toggle-screen-temp11
5 files changed, 28 insertions, 5 deletions
diff --git a/arch/eww/.config/eww/eww.yuck b/arch/eww/.config/eww/eww.yuck
index 8574e1f..7c80505 100644
--- a/arch/eww/.config/eww/eww.yuck
+++ b/arch/eww/.config/eww/eww.yuck
@@ -42,8 +42,8 @@
(defpoll wifi-iface :interval "5s"
`IFACE=$(ls /sys/class/net | grep -m1 '^wl'); [ -n "$IFACE" ] && [ "$(cat /sys/class/net/$IFACE/operstate 2>/dev/null)" = "up" ] && echo "$IFACE" || echo "disconnected"`)
-(defpoll brightness :interval "2s"
- `brightnessctl -m 2>/dev/null | awk -F, '{print int($4)}' || echo "100"`)
+(defpoll brightness :interval "1s"
+ `hyprctl hyprsunset gamma 2>/dev/null || echo "100"`)
(defpoll netspeed :interval "3s"
`scripts/netspeed`)
@@ -79,7 +79,8 @@
(defwidget bright-stat []
(eventbox
- :onscroll "[ '{}' = 'up' ] && brightnessctl set +5% || brightnessctl set 5%-"
+ :onscroll "[ '{}' = 'up' ] && hyprctl hyprsunset gamma +5 || hyprctl hyprsunset gamma -5"
+ :onclick "toggle-screen-temp"
(box :class "stat" :space-evenly false :spacing 3
(label :class "stat-label" :text "bright")
(label :class "stat-val" :text "${brightness}%"))))
diff --git a/arch/hyprland/.config/hypr/hyprland.conf b/arch/hyprland/.config/hypr/hyprland.conf
index 33ba711..9b9d231 100644
--- a/arch/hyprland/.config/hypr/hyprland.conf
+++ b/arch/hyprland/.config/hypr/hyprland.conf
@@ -80,6 +80,7 @@ animations {
exec-once = awww-daemon
exec-once = mako
exec-once = hypridle
+exec-once = hyprsunset
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = eww daemon && eww open bar
exec-once = bash -c 'sleep 0.5; [ -f ~/.cache/wallust/last-wallpaper ] && ~/.local/bin/set-wallpaper "$(cat ~/.cache/wallust/last-wallpaper)"'
diff --git a/arch/hyprland/.config/hypr/keybinds.conf b/arch/hyprland/.config/hypr/keybinds.conf
index 2f00c8f..6bd044b 100644
--- a/arch/hyprland/.config/hypr/keybinds.conf
+++ b/arch/hyprland/.config/hypr/keybinds.conf
@@ -98,8 +98,8 @@ bindl = , XF86AudioMute, exec, pamixer -t
bindle = , XF86AudioRaiseVolume, exec, pamixer -i 5
bindle = , XF86AudioLowerVolume, exec, pamixer -d 5
-bindle = , XF86MonBrightnessUp, exec, brightnessctl set +5%
-bindle = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
+bindle = , XF86MonBrightnessUp, exec, hyprctl hyprsunset gamma +5
+bindle = , XF86MonBrightnessDown, exec, hyprctl hyprsunset gamma -5
bind = $mainMod, F2, exec, brightnessctl -d asus::kbd_backlight set 1-
bind = $mainMod, F3, exec, brightnessctl -d asus::kbd_backlight set +1
diff --git a/arch/install.sh b/arch/install.sh
index 648a26c..b7bc2e4 100755
--- a/arch/install.sh
+++ b/arch/install.sh
@@ -22,6 +22,7 @@ ask() {
pacman_packages=(
hyprland
hyprlock
+ hyprsunset
hypridle
xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
@@ -153,6 +154,15 @@ if ask "==> Install Spotify + Spicetify (wallust auto-theming)?"; then
echo " Spotify + Spicetify installed and themed."
fi
+# ── Optional: Zen-browser ─────────────────────────────────────────
+echo ""
+if ask "==> Install Zen browser and extensions?"; then
+ yay -S --needed \
+ zen-browser-bin \
+
+ echo " Zen browser installed."
+fi
+
# ── Optional: Neovim dev environment ─────────────────────────────────────────
echo ""
if ask "==> Install Neovim dev environment (LSP, formatters, linters)?"; then
diff --git a/arch/scripts/.local/bin/toggle-screen-temp b/arch/scripts/.local/bin/toggle-screen-temp
new file mode 100755
index 0000000..d0135bf
--- /dev/null
+++ b/arch/scripts/.local/bin/toggle-screen-temp
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+sentinelfile="${XDG_RUNTIME_DIR}/screentempislow"
+
+if [[ -e ${sentinelfile} ]]; then
+ hyprctl hyprsunset temperature 6000
+ rm ${sentinelfile}
+else
+ hyprctl hyprsunset temperature 3500
+ touch ${sentinelfile}
+fi