Changes
6 changed files (+7/-7)
-
-
@@ -1,3 +1,3 @@function btrdiff function btrdiff -d "Get diff between last two btrfs snapshots" sudo btrbk diff (printf %s\n /.snapshots/ROOT.* | tail -n2) | less end
-
-
-
@@ -1,3 +1,3 @@function ccp function ccp -d "Copy input or file to clipboard" cat $argv | fish_clipboard_copy end
-
-
-
@@ -1,3 +1,3 @@function pacprov function pacprov -d "Find packages provided by multiple packages" pacman -Qi | grep ^Provides | grep -wo "[^ ]*" | sort | uniq -d | grep -v ":\|None\|Provides" end
-
-
-
@@ -1,3 +1,3 @@function pacreq function pacreq -d "Find manually installed packages that are dependencies of other installed packages" pacman -Qi (pacman -Qeq) | grep "Name\|Required" | grep -v None | grep "Required" -B1 end
-
-
-
@@ -1,10 +1,10 @@function setvirtualkeyboard function setvirtualkeyboard -d "Edit the Plasma Wayland virtual keyboard setting" 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 function switchvirtualkeyboard -d "Switch the virtual keyboard to Maliit when entering tablet mode and Fcitx5 when exiting" busctl --user monitor --match "type='signal',interface='org.kde.KWin.TabletModeManager',member='tabletModeChanged'" | \ while read -l line if string match -q "*true*" $line
-
-
-
@@ -1,4 +1,4 @@function sysusers function sysusers -d "Find leftover users and groups from removed packages" diff (awk -F: '$3 < 1000 {print $1}' /etc/passwd | sort | psub) (systemd-sysusers --tldr | awk '$1 ~ /^u/ {print $2}' | grep -v nobody | sort | psub) diff (awk -F: '$3 < 1000 {print $1}' /etc/group | sort | psub) (systemd-sysusers --tldr | awk '$1 ~ /^u/ || $1 ~ /^g/ {print $2}' | grep -v nobody | sort | uniq | psub) end
-