Added daemons etc

This commit is contained in:
Joachim Nielandt 2023-05-18 14:31:04 +02:00
parent 33f1469afa
commit e26a85f3a9
2 changed files with 45 additions and 0 deletions

View File

@ -16,6 +16,40 @@ default_border normal
# Font
font pango:Hasklig Medium 9
# autostart background applications
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec {
# $xdg-dirs
# $swayidle
$mako
# $swappy_notify
# $autostart_dex
# $flashfocus
# $wlsunset
# $autotiling
# $foot_server
# $help_menu
# $cliphist_store
# $cliphist_watch
# $workspace_icons
# $mounting_daemon
}
exec_always {
# $kanshi
# $auto_xdg_keyboard
# $poweralert
# $watch_playerctl
# $calendar_daemon
# $update_rofi_theme
# $create_rofi_config
# $swayr_daemon
}
# https://github.com/Alexays/Waybar/issues/1093#issuecomment-841846291
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
### Idle configuration
#
# Example configuration:

View File

@ -111,3 +111,14 @@ set $mic_mute $onscreen_bar $(pactl set-source-mute @DEFAULT_SOURCE@ toggle && p
# scaling
set $scale_up $swayscripts/scale.sh up
set $scale_down $swayscripts/scale.sh down
# daemons
set $mako '$HOME/.config/sway/scripts/mako.sh --font "$term-font" --text-color "$text-color" --border-color "$accent-color" --background-color "$background-color" --border-size 3 --width 400 --height 200 --padding 20 --margin 20 --default-timeout 15000'
#set $swappy_notify '[ -x "$(command -v swappy)" ] && /usr/share/sway/scripts/screenshot-notify.sh'
#set $poweralert '[ -x "$(command -v poweralertd)" ] && pkill poweralertd; poweralertd -s -i "line power" &'
#set $swayr_daemon '[ -x "$(command -v swayrd)" ] && pkill swayrd; RUST_BACKTRACE=1 RUST_LOG=swayr=debug swayrd &> /tmp/swayrd.log'
#set $cliphist_watch '[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && wl-paste --watch pkill -RTMIN+9 waybar'
#set $cliphist_store '[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && wl-paste --watch cliphist store'
#set $calendar_daemon 'calcurse --daemon'
set $nm_applet '[ -x "$(command -v nm-applet)" ] && nm-applet'
#set $watch_playerctl '[ -x "$(command -v playerctl)" ] && pkill playerctl; playerctl -a metadata --format \'{{status}} {{title}}\' --follow | while read line; do pkill -RTMIN+5 waybar; done'