basilisk but actually + cleanup
This commit is contained in:
85
home/.basilisk/components
Normal file
85
home/.basilisk/components
Normal file
@@ -0,0 +1,85 @@
|
||||
restart_panel,rb,Restart Panel
|
||||
pkill waybar
|
||||
shchemes inject "${BAS_ROOT}/waybar/style.css"
|
||||
waybar \
|
||||
-c "${BAS_ROOT}/waybar/config.jsonc" \
|
||||
-s "${BAS_ROOT}/waybar/style.css" & disown
|
||||
|
||||
notifs,n,Notifications
|
||||
rofication-gui
|
||||
|
||||
power-off-monitors,pm,Power Off Monitors
|
||||
niri msg action power-off-monitors
|
||||
|
||||
lock,l,Lock
|
||||
# filename=$(basename -- "$(xrescat basilisk.wallpaper)")
|
||||
# ext="${filename##*.}"
|
||||
img="/tmp/basilisk-lock.png"
|
||||
# path="$(date +"$HOME/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png")"
|
||||
niri msg action screenshot-screen -p false -d true --path "/tmp/basilisk-lock-raw.png"
|
||||
inotifywait -q -e close_write /tmp/basilisk-lock-raw.png | head -n1
|
||||
magick "/tmp/basilisk-lock-raw.png" \
|
||||
-set colorspace Gray \
|
||||
# -blur 0x8 \
|
||||
"$img"
|
||||
swaylock -i "$img" & disown
|
||||
# swaylock -i "$(xrescat basilisk.wallpaper) & disown
|
||||
|
||||
suspend,ps,Suspend
|
||||
systemctl suspend && lock
|
||||
|
||||
logout,pe,Log Out
|
||||
loginctl terminate-session ${XDG_SESSION_ID-}
|
||||
|
||||
# hibernate,ph,Hibernate
|
||||
# systemctl hibernate
|
||||
|
||||
shutdown,pdy,Shutdown,
|
||||
systemctl poweroff
|
||||
|
||||
reboot,pry,Reboot,
|
||||
systemctl reboot
|
||||
|
||||
reload_compositor,rc,Reload Compositor,
|
||||
shchemes inject "${BAS_ROOT}/niri/config.kdl"
|
||||
|
||||
reload_shell,rs,Reload Shell,
|
||||
"${BAS_ROOT}/genctl"
|
||||
|
||||
timeout_daemon,rdt,Reload Timeout Daemon,
|
||||
pkill swayidle
|
||||
swayidle -w \
|
||||
timeout 300 'bas lock' \
|
||||
timeout 360 'bas power-off-monitors' \
|
||||
before-sleep 'bas power-off-monitors && bas lock' & disown
|
||||
|
||||
notif_daemon,rdn,Reload Notification Daemon,
|
||||
pkill -f rofication-daemon
|
||||
rofication-daemon & disown
|
||||
|
||||
wallpaper,rw,Reload Wallpaper
|
||||
# filename=$(basename -- "$(xrescat basilisk.wallpaper)")
|
||||
# ext="${filename##*.}"
|
||||
# wallpaper_blur_path="/tmp/basilisk-overview-wallpaper.${ext}"
|
||||
# magick convert "$(xrescat basilisk.wallpaper)" -blur 0x12 "$wallpaper_blur_path"
|
||||
# awww img "$wallpaper_blur_path" -n basilisk-overview
|
||||
pkill swaybg
|
||||
swaybg -i "$(xrescat basilisk.wallpaper)"
|
||||
# awww img "$(xrescat basilisk.wallpaper)"
|
||||
|
||||
theme_apps,rat,Reload App Themes,
|
||||
shchemes inject "$HOME/.config/qutebrowser/config.py"
|
||||
shchemes create_theme css > "$HOME/.config/base16.css"
|
||||
shchemes create_theme css > "$HOME/.config/qutebrowser/base16.css"
|
||||
pkill -HUP qutebrowser
|
||||
|
||||
shchemes create_theme rofi > "$HOME/.config/rofi/theme.rasi"
|
||||
|
||||
load,rr,Reload All,
|
||||
reload_shell
|
||||
"$0" reload_compositor
|
||||
"$0" restart_panel
|
||||
"$0" notif_daemon
|
||||
"$0" timeout_daemon
|
||||
"$0" wallpaper
|
||||
"$0" theme_apps
|
||||
Reference in New Issue
Block a user