Skip to content

Commit

Permalink
Trying fix meta key to desktop with latte
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Jun 6, 2023
1 parent ecba5c9 commit 288c9cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file removed usr/bin/.biglinux-themes.sh.kate-swp
Binary file not shown.
9 changes: 9 additions & 0 deletions usr/bin/biglinux-themes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ case "$1" in
kwriteconfig5 --file ~/.config/kwinrc --group Windows --key BorderlessMaximizedWindows false
fi

# Metakey to plasma or latte
if [ "$(cat "$HOME/.config/enable_latte")" = "1" ]; then
qdbus org.kde.lattedock /Latte org.kde.LatteDock.switchToLayout "$HOME/.config/latte/Default.layout.latte"
kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key "Meta" "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu"
else
qdbus org.kde.lattedock /Latte org.kde.LatteDock.quitApplication
kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key "Meta" "org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu"
fi

if [ "$(ps -e | grep kwin)" != "" ]
then

Expand Down

0 comments on commit 288c9cc

Please sign in to comment.