diff options
author | Anthony Wang | 2024-11-22 22:27:20 -0500 |
---|---|---|
committer | Anthony Wang | 2024-11-22 22:27:20 -0500 |
commit | 39e70197454023cd01b559c8f9c1af81028dc6f2 (patch) | |
tree | aa520dbc28e1faff1b3df986430cf1fea7d65a0b /autostart | |
parent | a4fa177b3f84d8c1cb8b77e08475d973bcee8032 (diff) |
Replace autostart .desktop files with systemd services and fish functions
Diffstat (limited to 'autostart')
-rw-r--r-- | autostart/ssh-add.desktop | 4 | ||||
-rw-r--r-- | autostart/switchvirtualkeyboard.desktop | 4 | ||||
-rwxr-xr-x | autostart/switchvirtualkeyboard.sh | 16 |
3 files changed, 0 insertions, 24 deletions
diff --git a/autostart/ssh-add.desktop b/autostart/ssh-add.desktop deleted file mode 100644 index 4ec7d65..0000000 --- a/autostart/ssh-add.desktop +++ /dev/null @@ -1,4 +0,0 @@ -[Desktop Entry] -Exec=ssh-add -Name=ssh-add -Type=Application diff --git a/autostart/switchvirtualkeyboard.desktop b/autostart/switchvirtualkeyboard.desktop deleted file mode 100644 index f66d8e0..0000000 --- a/autostart/switchvirtualkeyboard.desktop +++ /dev/null @@ -1,4 +0,0 @@ -[Desktop Entry] -Exec=bash ~/.config/autostart/switchvirtualkeyboard.sh -Name=switchvirtualkeyboard -Type=Application diff --git a/autostart/switchvirtualkeyboard.sh b/autostart/switchvirtualkeyboard.sh deleted file mode 100755 index b0919f5..0000000 --- a/autostart/switchvirtualkeyboard.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -switch() { - echo "Starting $1" - kwriteconfig6 --file kwinrc --group Wayland --key InputMethod "$1" - busctl --user emit /kwinrc org.kde.kconfig.notify ConfigChanged "a{saay}" 1 Wayland 1 11 73 110 112 117 116 77 101 116 104 111 100 -} - -busctl --user monitor --match "type='signal',interface='org.kde.KWin.TabletModeManager',member='tabletModeChanged'" | \ -while read -r line; do - if [[ $line == *"true"* ]]; then - switch /usr/share/applications/com.github.maliit.keyboard.desktop - elif [[ $line == *"false"* ]]; then - switch /usr/share/applications/fcitx5-wayland-launcher.desktop - fi -done |