From 1e47547c5270ca4c1ff3cb3e4deedad8891fc808 Mon Sep 17 00:00:00 2001 From: The_miro Date: Fri, 20 Feb 2026 10:27:45 +0100 Subject: [PATCH] added toggle-layout and chameleos for screen annotation --- desktopenvs/hyprland/hypr-usr/binds.conf | 10 +++++++--- desktopenvs/hyprland/scripts/toggle-layout.sh | 11 +++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100755 desktopenvs/hyprland/scripts/toggle-layout.sh diff --git a/desktopenvs/hyprland/hypr-usr/binds.conf b/desktopenvs/hyprland/hypr-usr/binds.conf index c3e6d55..e89cbd0 100644 --- a/desktopenvs/hyprland/hypr-usr/binds.conf +++ b/desktopenvs/hyprland/hypr-usr/binds.conf @@ -57,7 +57,7 @@ bind = $mainMod CTRL, P, exec, ~/.config/scripts/screenrec.sh # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, T, exec, $terminal -bind = $mainMod SHIFT, T, exec, cool-retro-term -p /home/themiro/Dotfiles/desktopenvs/hyprland/CRT +bind = $mainMod SHIFT, T, exec, cool-retro-term -p ~/Dotfiles/desktopenvs/hyprland/CRT bind = $mainMod, Z, exec, ~/.config/scripts/togglebar.sh bind = $mainMod, Q, killactive, bind = $mainMod, M, exec, $editor @@ -84,7 +84,9 @@ bind = $mainMod SHIFT, I, exec, [tag +mixer] nm-connection-editor bind = $mainMod, I, exec, iwmenu --launcher walker bind = $mainMod ALT, I, exec, bzmenu --launcher walker -bind = $mainMod, S, exec, [tag +mixer] hyprpwcenter +bind = $mainMod CTRL, M, exec, ~/.config/scripts/toggle-layout.sh + +bind = $mainMod, S, exec, [tag +mixer] pavucontrol bind = $mainMod, F1, exec, [tag +centered] kitty ~/.config/scripts/helpmenu.sh bind = $mainMod, U, exec, [tag +centered-L] kitty btop bind = $mainMod SHIFT, F1, exec, [tag +centered-L] kitty nvim ~/.config/binds.conf @@ -277,7 +279,9 @@ bindle=, XF86MonBrightnessDown, exec, bri --down bindl=, XF86AudioPlay, exec, playerctl play-pause -p spotify, vlc -bind= $mainMod CTRL, I, exec, ~/.config/scripts/getispeed.sh +bind= $mainMod CTRL, I, exec, chamel toggle +bind= $mainMod CTRL, U, exec, chamel clear +bind= $mainMod CTRL, Z, exec, chamel clear-and-deactivate #bind= $mainMod SHIFT, I, exec, env GTK_THEME=cyberqueer nm-connection-editor bind= $mainMod CTRL, C, exec, dunstctl close-all bind= $mainMod CTRL, G, exec, ~/.config/scripts/onscreenkb.sh diff --git a/desktopenvs/hyprland/scripts/toggle-layout.sh b/desktopenvs/hyprland/scripts/toggle-layout.sh new file mode 100755 index 0000000..939f7b0 --- /dev/null +++ b/desktopenvs/hyprland/scripts/toggle-layout.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +statecon=$( hyprctl getoption general:layout | grep master ) +#notify-send $statecon +if [ "$statecon" != '' ]; then + hyprctl keyword general:layout dwindle +else + hyprctl keyword general:layout master +fi + +