Move some scripts back to Sway config
There is no need to run these scripts as systemd user services since they are optional and can be modified or deleted by the user
This commit is contained in:
parent
392c6dcc1c
commit
17f3663a9b
8 changed files with 26 additions and 55 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
|||
tileos-settings-sway (1.0~tileos) unstable; urgency=medium
|
||||
|
||||
* Move some scripts and commands back to Sway config
|
||||
|
||||
-- Aleksey Samoilov <samoilov.lex@gmail.com> Sat, 16 Sep 2023 11:53:16 +0400
|
||||
|
||||
tileos-settings-sway (0.44~tileos) unstable; urgency=medium
|
||||
|
||||
* Adjust PCmanFM-Qt window
|
||||
|
|
|
@ -9,9 +9,14 @@ exec {
|
|||
$help_menu
|
||||
$cliphist_store
|
||||
$cliphist_watch
|
||||
$autoname_workspaces
|
||||
$switch_toplevel
|
||||
$pcmanfm_daemon
|
||||
}
|
||||
exec_always {
|
||||
$kanshi
|
||||
$nwg_drawer_daemon
|
||||
$watch_playerctl
|
||||
$calendar_daemon
|
||||
$update_rofi_theme
|
||||
}
|
||||
|
|
|
@ -94,18 +94,33 @@ set $wlsunset '[ -x "$(command -v wlsunset)" ] && /usr/share/sway/scripts/sunset
|
|||
# Autotiling script
|
||||
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'
|
||||
|
||||
# switch between top-level containers (windows) in a workspace
|
||||
set $switch_toplevel '[ -f /usr/share/sway/scripts/switch-top-level.py ] && /usr/share/sway/scripts/switch-top-level.py'
|
||||
|
||||
# restart kanshi https://github.com/emersion/kanshi/issues/43#issuecomment-531679213
|
||||
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
|
||||
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'
|
||||
|
||||
# Start nwg-drawer as a daemon
|
||||
set $nwg_drawer_daemon '[ -x "$(command -v nwg-drawer)" ] && nwg-drawer -r'
|
||||
|
||||
# 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'
|
||||
|
||||
# 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
|
||||
|
||||
# Start Calcurse calendar as a daemon
|
||||
set $calendar_daemon 'calcurse --daemon'
|
||||
|
||||
# Notifications from Swappy
|
||||
set $swappy_notify '[ -x "$(command -v swappy)" ] && /usr/share/sway/scripts/screenshot-notify.sh'
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
[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
|
|
@ -1,11 +0,0 @@
|
|||
[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
|
|
@ -1,11 +0,0 @@
|
|||
[Unit]
|
||||
Requires=sway-session.target
|
||||
ConditionPathExists=/usr/bin/nwg-drawer
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/nwg-drawer -r
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
|
@ -1,11 +0,0 @@
|
|||
[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
|
|
@ -1,11 +0,0 @@
|
|||
[Unit]
|
||||
Requires=sway-session.target
|
||||
ConditionPathExists=/usr/share/sway/scripts/switch-top-level.py
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/share/sway/scripts/switch-top-level.py
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
Loading…
Add table
Reference in a new issue