Changes
8 changed files (+36/-27)
-
autostart/ssh-add.desktop (deleted)
-
@@ -1,4 +0,0 @@[Desktop Entry] Exec=ssh-add Name=ssh-add Type=Application
-
-
autostart/switchvirtualkeyboard.desktop (deleted)
-
@@ -1,4 +0,0 @@[Desktop Entry] Exec=bash ~/.config/autostart/switchvirtualkeyboard.sh Name=switchvirtualkeyboard Type=Application
-
-
autostart/switchvirtualkeyboard.sh (deleted)
-
@@ -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
-
-
-
@@ -1,11 +1,10 @@function backup if not set -q HOSTNAME set HOSTNAME (hostnamectl hostname) set HOSTNAME (hostnamectl hostname) end cd ~/Documents/Backups/$HOSTNAME cp ~/.local/share/fish/fish_history . cp ~/.mozilla/firefox/*.default-release/places.sqlite . cp ~/.thunderbird/*.default-release/Mail/Feeds/feeds.json . cd - end
-
-
-
@@ -0,0 +1,16 @@function setvirtualkeyboard echo "Starting $argv[1]" kwriteconfig6 --file kwinrc --group Wayland --key InputMethod "$argv[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 end function switchvirtualkeyboard busctl --user monitor --match "type='signal',interface='org.kde.KWin.TabletModeManager',member='tabletModeChanged'" | \ while read -l line if string match -q "*true*" $line setvirtualkeyboard /usr/share/applications/com.github.maliit.keyboard.desktop else if string match -q "*false*" $line setvirtualkeyboard /usr/share/applications/fcitx5-wayland-launcher.desktop end end end
-
-
-
@@ -0,0 +1,8 @@[Unit] Description=Back up important files [Service] ExecStart=fish -c backup [Install] WantedBy=default.target
-
-
-
@@ -0,0 +1,2 @@[Service] ExecStartPost=ssh-add
-
-
-
@@ -0,0 +1,8 @@[Unit] Description=Switch the virtual keyboard when entering and exiting tablet mode [Service] ExecStart=fish -c switchvirtualkeyboard [Install] WantedBy=default.target
-