diff options
-rw-r--r-- | home/.config/i3/config | 6 | ||||
-rw-r--r-- | home/.xinitrc | 1 | ||||
-rw-r--r-- | src/etc/udev/rules.d/99-lowbat.rules | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/home/.config/i3/config b/home/.config/i3/config index bfa1b48..050b631 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -10,7 +10,6 @@ # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 -set $lock i3lock --nofork -i ~/bg/sc.png -k bindsym --release Print exec scrot -fs @@ -25,6 +24,7 @@ bindsym $mod+$scr exec xrandr --output HDMI-2 --auto --right-of eDP-1 # Hibernation bindsym $mod+x exec systemctl suspend bindsym $mod+Shift+x exec systemctl hibernate +bindsym $mod+Mod1+x exec systemctl hybrid-sleep # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. @@ -37,10 +37,6 @@ font pango:monospace 8 # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. -# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the -# screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- $lock - # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. diff --git a/home/.xinitrc b/home/.xinitrc index b939658..a3c3920 100644 --- a/home/.xinitrc +++ b/home/.xinitrc @@ -1,4 +1,5 @@ picom -b +xss-lock -- i3lock --nofork -i ~/bg/sc.png -k setxkbmap -layout us -variant dvp -option caps:escape feh --bg-fill --no-fehbg ~/bg/sc.png exec i3 diff --git a/src/etc/udev/rules.d/99-lowbat.rules b/src/etc/udev/rules.d/99-lowbat.rules index 7c4c86e..1d322e3 100644 --- a/src/etc/udev/rules.d/99-lowbat.rules +++ b/src/etc/udev/rules.d/99-lowbat.rules @@ -1 +1 @@ -SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-1]", RUN+="/usr/bin/systemctl hibernate" +SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-1]", RUN+="/usr/bin/systemctl hybrid-sleep" |