diff options
| author | Zach DeCook <zachdecook@librem.one> | 2026-04-28 07:52:28 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2026-04-28 07:52:28 -0400 |
| commit | 23c2be1ad5e5fb5dfb58f6d4f39d59929caa327f (patch) | |
| tree | 6573a7e05a8e4093ef24777f164ec1655f357bcb | |
| parent | 237da97819be61b4db6df2fe8e393fa3382f7991 (diff) | |
| download | dotfiles-23c2be1ad5e5fb5dfb58f6d4f39d59929caa327f.tar.gz | |
hypridle, keyboard brightness
| -rw-r--r-- | .config/hypr/hypridle.conf | 31 | ||||
| -rw-r--r-- | .config/hypr/hyprland.conf | 5 | ||||
| l--------- | .config/rc/runlevels/gui/hypridle | 1 | ||||
| -rw-r--r-- | .gitignore | 12 | ||||
| -rw-r--r-- | .profile | 8 |
5 files changed, 52 insertions, 5 deletions
diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf new file mode 100644 index 0000000..affaf64 --- /dev/null +++ b/.config/hypr/hypridle.conf @@ -0,0 +1,31 @@ +# sample hypridle.conf +# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hypridle + +general { + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} + +# Dim after 5 minutes +listener { + timeout = 300 + on-timeout = brightnessctl -s set 10 + on-resume = brightnessctl -r # monitor backlight restore. +} +listener { + timeout = 300 + on-timeout = brightnessctl -sd kbd_backlight set 0 # turn off keyboard backlight. + on-resume = brightnessctl -rd kbd_backlight # turn on keyboard backlight. +} + +# screenoff after half hour +listener { + timeout = 1800 + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on +} + +# suspend after an hour +listener { + timeout = 3600 + on-timeout = loginctl suspend +} diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 1877cdc..7975c44 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -88,7 +88,7 @@ general { col.inactive_border = rgba(595959aa) # Set to true enable resizing windows by clicking and dragging on borders and gaps - resize_on_border = false + resize_on_border = true # Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on allow_tearing = false @@ -280,6 +280,9 @@ bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+ bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%- +bindel = SHIFT,XF86MonBrightnessUp, exec, brightnessctl -d kbd_backlight -e4 -n2 set 5%+ +bindel = SHIFT,XF86MonBrightnessDown, exec, brightnessctl -d kbd_backlight -e4 -n2 set 5%- + # Requires playerctl bindl = , XF86AudioNext, exec, playerctl next diff --git a/.config/rc/runlevels/gui/hypridle b/.config/rc/runlevels/gui/hypridle new file mode 120000 index 0000000..cda3b81 --- /dev/null +++ b/.config/rc/runlevels/gui/hypridle @@ -0,0 +1 @@ +/etc/user/init.d/hypridle \ No newline at end of file diff --git a/.gitignore b/.gitignore index d6278d0..2f93086 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,14 @@ +.ash_history +.cache +.config/.gsd-keyboard.settings-ported .config/dconf .config/evolution +.config/micro/backups/ +.config/micro/buffers/ .config/pulse .dbus +.mozilla +.python_history Downloads Pictures -.cache -.ash_history -.config/.gsd-keyboard.settings-ported -.mozilla +gs diff --git a/.profile b/.profile new file mode 100644 index 0000000..5e99a50 --- /dev/null +++ b/.profile @@ -0,0 +1,8 @@ +PATH="$PATH:$HOME/.local/bin" +export EDITOR="micro" +export APORTSDIR="$HOME/gs/aports" + +# Bigger font +if [ "$(tty)" = /dev/tty6 ]; then + setfont /usr/share/consolefonts/ter-132n.psf.gz +fi |
