add sway config for idle

This commit is contained in:
shibao 2023-11-09 12:36:21 -05:00
parent ba709c86eb
commit e72a0de86e
2 changed files with 18 additions and 68 deletions

View File

@ -44,12 +44,12 @@ exec_always {
# timeout
exec swayidle -w \
timeout 300 'playerctl -a pause && swaylock' \
timeout 600 'swaymsg "output * dpms off"' \
timeout 600 'swaymsg "output * power off"' \
before-sleep 'playerctl -a pause' \
lock 'swaylock' \
resume 'swaymsg "output * dpms on"'
resume 'swaymsg "output * power on"'
# screen lock
# system lock
bindsym Ctrl+Shift+l exec "playerctl -a pause; \
systemctl suspend && \
swaylock"

View File

@ -1,3 +1,4 @@
acpi
adobe-source-han-sans-jp-fonts
adobe-source-han-sans-kr-fonts
aic94xx-firmware
@ -31,10 +32,8 @@ cowsay
cpupower
cpupower-gui
cryptsetup
cups
cups-pdf
darktable
ddclient
device-mapper
dhcpcd
dialog
@ -52,7 +51,6 @@ etcher-bin
evince
evolution
f2fs-tools
fail2ban
fakeroot
fcitx5
fcitx5-chinese-addons
@ -69,7 +67,6 @@ firefox
flex
font-manager
fortune-mod
fortune-mod-acecombat
fortune-mod-calvin
fortune-mod-confucius
fortune-mod-doctorwho-new-series
@ -79,6 +76,8 @@ fortune-mod-hitchhiker
fortune-mod-matrix
fortune-mod-portal-game
fortune-mod-starwars
fprintd
framework-system-git
freecad
fstl
fwbuilder
@ -90,24 +89,22 @@ gcc
gcc-libs
gdlauncher-bin
gedit
geoclue
gettext
gimp
git
git-lfs
glibc
gnome-control-center
gnome-disk-utility
gnome-firmware
gnome-keyring
gnome-sound-recorder
gnu-free-fonts
gnu-netcat
gnutls
gparted
grep
grim
grub
gsmartcontrol
gsound
gst-libav
gst-plugins-bad
gst-plugins-ugly
@ -122,7 +119,7 @@ highlight
htop
hugin
hunspell-en_us
ibus-uniemoji-git
iio-sensor-proxy
inkscape
inotify-tools
iotop
@ -132,11 +129,9 @@ itstool
iucode-tool
iw
jammr
jansson
jq
kanshi
kcm-wacomtablet
kdeconnect
kdocker
keepassxc
kid3
@ -144,53 +139,29 @@ kitty
kochmorse
krita
lagrange
leap-motion-driver
leptonica
less
lib32-gamemode
lib32-giflib
lib32-gnutls
lib32-gst-plugins-base-libs
lib32-gtk3
lib32-libappindicator-gtk2
lib32-libappindicator-gtk3
lib32-libgpg-error
lib32-libjpeg-turbo
lib32-libldap
lib32-libpng
lib32-libpulse
lib32-libva
lib32-libva-mesa-driver
lib32-libxcomposite
lib32-libxinerama
lib32-libxslt
lib32-mesa-vdpau
lib32-mpg123
lib32-ocl-icd
lib32-openal
lib32-sqlite
lib32-v4l-utils
lib32-vkd3d
lib32-vulkan-icd-loader
libappindicator-gtk3
libdvdcss
libffado
libglvnd
libgnome-keyring
libgooglepinyin
libime
libjbig-shared
libjpeg6-turbo
libpinyin
libpng
libreoffice-extension-languagetool
libreoffice-still
libretro-overlays
libretro-shaders-slang
libva-mesa-driver
libva-utils
libvncserver
libxkbcommon
licenses
linux
linux-firmware
@ -213,7 +184,6 @@ mcomix
mcpp
mdadm
mediainfo
mesa
minecraft-launcher
mixxx
mousetweaks
@ -230,7 +200,6 @@ neofetch
neovim
networkmanager
network-manager-applet
nginx-mod-fancyindex
nmap
nomacs
noto-fonts-cjk
@ -239,17 +208,16 @@ noto-fonts-extra
ntfs-3g
ntp
nvtop
obs-studio
ocl-icd
odt2txt
opencc
opendesktop-fonts
openshot
openvpn
opustags
orca
overdue
p7zip
package-query
pacman-contrib
paman
pacman
papirus-icon-theme
patch
pavucontrol
@ -258,36 +226,29 @@ perl
perl-image-exiftool
perl-rename
picard
piper
pipewire-alsa
pipewire-jack
pipewire-pulse
pixman
pkgconf
pkgstats
playerctl
playonlinux
polkit-gnome
postgresql-libs
power-profiles-daemon
powertop
procps-ng
psensor
psmisc
pv
pyside2
python
python-axolotl
python-levenshtein
python-matplotlib
python-mutagen
python-pip
python-pycryptodome
python-pyenchant
python-pylast
python-pynvim
python-wxpython
qbittorrent
qt5ct
qt5-graphicaleffects
qt5-imageformats
quodlibet
ranger
rar
@ -297,7 +258,6 @@ remmina
retroarch
retroarch-assets-xmb
rofi
rsnapshot
rsync
samsung_magician-consumer-ssd
seahorse
@ -309,21 +269,19 @@ simple-scan
slurp
smartmontools
s-nail
sndio
ssh-audit
sshpass
stalonetray
steam
steam-native-runtime
sudo
sway
swaybg
swayidle
swaylock
syncplay
syncthing
syncthing-gtk
sysfsutils
systemd
systemd-sysvcompat
systemd-ui
tar
@ -331,7 +289,6 @@ telegram-desktop
texinfo
texlive-basic
texlive-bibtexextra
texlive-bin
texlive-fontsextra
texlive-formatsextra
texlive-games
@ -342,7 +299,6 @@ texlive-music
texlive-pictures
texlive-pstricks
texlive-publishers
tlp
tmux
traceroute
trash-cli
@ -350,7 +306,6 @@ tree
ttf-dejavu
ttf-ibm-plex
ttf-joypixels
ttf-liberation
ttf-ms-fonts
ttf-opensans
ttf-symbola-free
@ -369,14 +324,12 @@ vulkan-mesa-layers
vulkan-radeon
vulkan-tools
w3m
wakeonlan
waybar
wayland-utils
wayvnc
wd719x-firmware
wdisplays
wf-recorder
wget
which
wine-staging
winetricks
@ -385,9 +338,8 @@ wl-clipboard
wol
wpa_supplicant
xclip
xdg-desktop-portal
xdg-desktop-portal-gnome
xdg-desktop-portal-wlr
xf86-input-wacom
xf86-video-amdgpu
xfsprogs
xorg-xdpyinfo
@ -397,6 +349,4 @@ xorg-xwayland
xsel
xterm
yay-bin
youtube-dl-git
yt-dlp
zimg