Add more services
This commit is contained in:
parent
ac30fbf3d6
commit
68d6cff1a4
5 changed files with 33 additions and 16 deletions
|
@ -9,13 +9,9 @@ exec {
|
||||||
$help_menu
|
$help_menu
|
||||||
$cliphist_store
|
$cliphist_store
|
||||||
$cliphist_watch
|
$cliphist_watch
|
||||||
$autoname_workspaces
|
|
||||||
$pcmanfm_daemon
|
|
||||||
}
|
}
|
||||||
exec_always {
|
exec_always {
|
||||||
$kanshi
|
$kanshi
|
||||||
$nwg_drawer_daemon
|
|
||||||
$watch_playerctl
|
$watch_playerctl
|
||||||
$calendar_daemon
|
|
||||||
$update_rofi_theme
|
$update_rofi_theme
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,30 +94,18 @@ set $wlsunset '[ -x "$(command -v wlsunset)" ] && /usr/share/sway/scripts/sunset
|
||||||
# Autotiling script
|
# Autotiling script
|
||||||
set $autotiling '[ -x "$(command -v autotiling)" ] && autotiling -w 1 3 5 7 9'
|
set $autotiling '[ -x "$(command -v autotiling)" ] && autotiling -w 1 3 5 7 9'
|
||||||
|
|
||||||
# Automatic workspace names
|
|
||||||
set $autoname_workspaces '[ -f /usr/share/sway/scripts/autoname-workspaces.py ] && /usr/share/sway/scripts/autoname-workspaces.py'
|
|
||||||
|
|
||||||
# restart kanshi https://github.com/emersion/kanshi/issues/43#issuecomment-531679213
|
# restart kanshi https://github.com/emersion/kanshi/issues/43#issuecomment-531679213
|
||||||
set $kanshi '[ -x "$(command -v kanshi)" ] && pkill kanshi; exec kanshi'
|
set $kanshi '[ -x "$(command -v kanshi)" ] && pkill kanshi; exec kanshi'
|
||||||
|
|
||||||
# Start PCmanFM-Qt as a daemon
|
|
||||||
set $pcmanfm_daemon '[ -x "$(command -v pcmanfm)" ] && pcmanfm-qt -d'
|
|
||||||
|
|
||||||
# Clipboard manager
|
# Clipboard manager
|
||||||
set $cliphist_store '[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && wl-paste --watch cliphist store'
|
set $cliphist_store '[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && wl-paste --watch cliphist store'
|
||||||
set $cliphist_watch '[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && wl-paste --watch pkill -RTMIN+9 waybar'
|
set $cliphist_watch '[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && wl-paste --watch pkill -RTMIN+9 waybar'
|
||||||
|
|
||||||
# Start nwg-drawer as a daemon
|
|
||||||
set $nwg_drawer_daemon '[ -x "$(command -v nwg-drawer)" ] && nwg-drawer -r'
|
|
||||||
|
|
||||||
# Start playerctl as daemon
|
# Start playerctl as daemon
|
||||||
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'
|
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'
|
||||||
|
|
||||||
# Update Rofi theme based on $rofi_theme colors
|
# Update Rofi theme based on $rofi_theme colors
|
||||||
set $update_rofi_theme mkdir -p $HOME/.config/rofi/ && echo $rofi_theme > $HOME/.config/rofi/config.rasi
|
set $update_rofi_theme mkdir -p $HOME/.config/rofi/ && echo $rofi_theme > $HOME/.config/rofi/config.rasi
|
||||||
|
|
||||||
# Start Calcurse calendar as a daemon
|
|
||||||
set $calendar_daemon 'calcurse --daemon'
|
|
||||||
|
|
||||||
# Notifications from Swappy
|
# Notifications from Swappy
|
||||||
set $swappy_notify '[ -x "$(command -v swappy)" ] && /usr/share/sway/scripts/screenshot-notify.sh'
|
set $swappy_notify '[ -x "$(command -v swappy)" ] && /usr/share/sway/scripts/screenshot-notify.sh'
|
||||||
|
|
11
usr/lib/systemd/user/autoname-workspaces.service
Normal file
11
usr/lib/systemd/user/autoname-workspaces.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Requires=sway-session.target
|
||||||
|
ConditionPathExists=/usr/share/sway/scripts/autoname-workspaces.py
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/share/sway/scripts/autoname-workspaces.py
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
11
usr/lib/systemd/user/calcurse.service
Normal file
11
usr/lib/systemd/user/calcurse.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Requires=sway-session.target
|
||||||
|
ConditionPathExists=/usr/bin/calcurse
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/calcurse --daemon
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
11
usr/lib/systemd/user/pcmanfm-qt.service
Normal file
11
usr/lib/systemd/user/pcmanfm-qt.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Requires=sway-session.target
|
||||||
|
ConditionPathExists=/usr/bin/pcmanfm-qt
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/pcmanfm-qt -d
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
Loading…
Add table
Reference in a new issue