This commit is contained in:
opalvault
2022-03-18 16:44:58 -07:00
parent 686ec205be
commit 50c027b6be
3 changed files with 15 additions and 18 deletions

View File

@@ -144,6 +144,9 @@ bindsym $mod+Shift+g exec grimshot save area
bindsym $mod+Mod1+g exec grimshot save output
bindsym $mod+Ctrl+g exec grimshot save window
# Turn the system off
bindsym $mod+Shift+e exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend'
# Notifications
exec_always --no-startup-id dunst
@@ -192,12 +195,10 @@ for_window [app_id="galendae"] floating enable, sticky enable, move position cur
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
exec swayidle -w \
timeout 300 'swaylock -f' \
timeout 1200 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
timeout \
before-sleep 'swaylock -f'
exec swayidle -w timeout 60 'swaylock -f' \
# timeout 600 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f'
### Input configuration
#

View File

@@ -2,7 +2,7 @@
alias install="sudo pacman -S"
alias remove="sudo pacman -R"
alias search="pacman -Ss"
alias upgrade="sudo pacman -Syyu"
alias update="sudo pacman -Syyu"
# ~ Commands ~ #
alias ip="ip -c"

View File

@@ -166,11 +166,9 @@ bindsym $mod+Mod1+g exec grimshot save output
bindsym $mod+Ctrl+g exec grimshot save window
#+end_src
*** Swaynag
#+begin_src shell
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t custom -m 'Do you wish to fully reload your Sway session?' -b 'Yes' 'swaymsg exit'
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Turn the system off
bindsym $mod+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend'
bindsym $mod+Shift+e exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend'
#+end_src
** Autostart
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
@@ -230,12 +228,10 @@ for_window [app_id="galendae"] floating enable, sticky enable, move position cur
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
exec swayidle -w \
timeout 300 'swaylock -f' \
timeout 1200 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
timeout \
before-sleep 'swaylock -f'
exec swayidle -w timeout 60 'swaylock -f' \
# timeout 600 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f'
#+end_src
** Input
*** Keyboard
@@ -711,7 +707,7 @@ FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
alias install="sudo pacman -S"
alias remove="sudo pacman -R"
alias search="pacman -Ss"
alias upgrade="sudo pacman -Syyu"
alias update="sudo pacman -Syyu"
# ~ Commands ~ #
alias ip="ip -c"