diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/fastfetch/config.jsonc | 3 | ||||
| -rw-r--r-- | config/hypr/configs/WindowRules-config-v3.conf | 2 | ||||
| -rw-r--r-- | config/hypr/configs/WindowRules.conf | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/Tak0-Per-Window-Switch.sh | 15 |
4 files changed, 9 insertions, 13 deletions
diff --git a/config/fastfetch/config.jsonc b/config/fastfetch/config.jsonc index 5533976b..d183de3c 100644 --- a/config/fastfetch/config.jsonc +++ b/config/fastfetch/config.jsonc @@ -126,7 +126,6 @@ "type": "custom", "format": "\u001b[90m└────────────────────────────────────────────────────┘" }, - "break", - + "break" ] } diff --git a/config/hypr/configs/WindowRules-config-v3.conf b/config/hypr/configs/WindowRules-config-v3.conf index a409ee43..8212e9bf 100644 --- a/config/hypr/configs/WindowRules-config-v3.conf +++ b/config/hypr/configs/WindowRules-config-v3.conf @@ -1,4 +1,4 @@ -# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # +# /* ---- 💫 https://github.com/LinuxBeginnings 💫 ---- */ # # Vendor defaults for window rules and layerrules # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more diff --git a/config/hypr/configs/WindowRules.conf b/config/hypr/configs/WindowRules.conf index a409ee43..8212e9bf 100644 --- a/config/hypr/configs/WindowRules.conf +++ b/config/hypr/configs/WindowRules.conf @@ -1,4 +1,4 @@ -# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # +# /* ---- 💫 https://github.com/LinuxBeginnings 💫 ---- */ # # Vendor defaults for window rules and layerrules # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more diff --git a/config/hypr/scripts/Tak0-Per-Window-Switch.sh b/config/hypr/scripts/Tak0-Per-Window-Switch.sh index e1f4213d..3ba2c7af 100755 --- a/config/hypr/scripts/Tak0-Per-Window-Switch.sh +++ b/config/hypr/scripts/Tak0-Per-Window-Switch.sh @@ -10,7 +10,7 @@ # smooth and comfortable workflow. # # # ################################################################## -# This is for changing kb_layouts. Set kb_layouts in +# This is for changing kb_layouts. Set kb_layouts in MAP_FILE="$HOME/.cache/kb_layout_per_window" USER_CFG="$HOME/.config/hypr/UserConfigs/UserSettings.conf" @@ -45,8 +45,8 @@ get_keyboards() { # Save window-specific layout save_map() { local W=$1 L=$2 - grep -v "^${W}:" "$MAP_FILE" >"$MAP_FILE.tmp" - echo "${W}:${L}" >>"$MAP_FILE.tmp" + grep -v "^${W}:" "$MAP_FILE" > "$MAP_FILE.tmp" + echo "${W}:${L}" >> "$MAP_FILE.tmp" mv "$MAP_FILE.tmp" "$MAP_FILE" } @@ -78,7 +78,7 @@ cmd_toggle() { break fi done - NEXT=$(((i + 1) % count)) + NEXT=$(( (i+1) % count )) do_switch "$NEXT" save_map "$W" "${kb_layouts[NEXT]}" notify-send -u low -i "$ICON" "kb_layout: ${kb_layouts[NEXT]}" @@ -117,9 +117,6 @@ fi # CLI case "$1" in -toggle | "") cmd_toggle ;; -*) - echo "Usage: $SCRIPT_NAME [toggle]" >&2 - exit 1 - ;; + toggle|"") cmd_toggle ;; + *) echo "Usage: $SCRIPT_NAME [toggle]" >&2; exit 1 ;; esac |
