diff --git a/basic/keybinds.conf b/basic/keybinds.conf index 245df7b..fe7c981 100644 --- a/basic/keybinds.conf +++ b/basic/keybinds.conf @@ -11,12 +11,20 @@ bind = $mainMod, W, exec, $terminal --class popup-term bind = $mainMod, C, killactive, bind = $mainMod SHIFT CTRL, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit bind = $mainMod, E, exec, $fileManager -bind = $mainMod, V, togglefloating, -bind = $mainMod, R, exec, $menu -bind = $mainMod, BACKSLASH, togglesplit # dwindle -bind = $mainMod SHIFT,BACKSLASH, pseudo # -bind = $mainMod, KEY_LEFTBRACE, exec, hyprctl general:layout master +# Workspace movement and tiling rule +bind = $mainMod, P, togglefloating, +bind = $mainMod, P, pin, +bind = $mainMod SHIFT, BACKSLASH, togglefloating, # float +bind = $mainMod, BACKSLASH, layoutmsg, togglesplit # dwindle +bind = $mainMod CTRL, BACKSLASH, pseudo # + +# bind = $mainMod, SEMICOLON, exec, hyprctl general:layout master +# bind = $mainMod, APOSTROPHE, exec, hyprctl general:layout dwindle + +# Compiler window +bind = $mainMod SHIFT, A, tagwindow, compiler +bind = $mainMod, A, exec, $XDG_CONFIG_HOME/hypr/scripts/compile.sh # 2. moving focus with vim bind = $mainMod, H, movefocus, l @@ -132,7 +140,7 @@ bind = $mainMod, T, exec, kdeconnect-app # This will toggle HyprExpo when SUPER+g is pressed ### GESTURES -# gesture = 3, up, dispatcher, hyprexpo:expo +gesture = 3, up, dispatcher, hyprexpo:expo # gesture = 3, pinch, special, magic gesture = 3, down, special, magic # gesture = 3, up, dispatcher, overview:toggle diff --git a/basic/windows.conf b/basic/windows.conf index 0cd8ff6..9df9b73 100644 --- a/basic/windows.conf +++ b/basic/windows.conf @@ -4,16 +4,16 @@ # See https://wiki.hypr.land/Configuring/Window-Rules/ for more # See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules - -# Example windowrules that are useful windowrule{ - name = calculator - match:class = calc-term - - opacity = 0.7 - float = on - center = true + name = compiler-window + match:tag = compiler + border_color = rgba(ccaaffee) + # col.inactive_border = rgba(333333aa) + border_size = 2 + float = false } + +# put vesktop in a special workspace windowrule{ name = discord match:class = vesktop @@ -55,6 +55,7 @@ windowrule { pseudo = yes float = yes center = true + opacity = 1 # move = cursor_x-10 cursor_y-10 size = monitor_w*.4 monitor_h*.4 diff --git a/hyprtoolkit.conf b/hyprtoolkit.conf index 1eda6b4..62033f9 100644 --- a/hyprtoolkit.conf +++ b/hyprtoolkit.conf @@ -1,7 +1,7 @@ -background = rgba(291414ff) -base = rgba(291414ff) -text = rgba(f3f2f2ff) -alternate_base = rgba(371b1bff) -bright_text = rgba(251818ff) -accent = rgba(e46767ff) -accent_secondary = rgba(d6995cff) \ No newline at end of file +background = rgba(191724ff) +base = rgba(191724ff) +text = rgba(e0def4ff) +alternate_base = rgba(26233aff) +bright_text = rgba(191724ff) +accent = rgba(ebbcbaff) +accent_secondary = rgba(9ccfd8ff) \ No newline at end of file diff --git a/noctalia/noctalia-colors.conf b/noctalia/noctalia-colors.conf index 244763b..59acbc4 100644 --- a/noctalia/noctalia-colors.conf +++ b/noctalia/noctalia-colors.conf @@ -1,9 +1,9 @@ -$primary = rgb(e46767) -$surface = rgb(291414) -$secondary = rgb(d6995c) -$error = rgb(fd4663) -$tertiary = rgb(cccc66) -$surface_lowest = rgb(150a0a) +$primary = rgb(ebbcba) +$surface = rgb(191724) +$secondary = rgb(9ccfd8) +$error = rgb(eb6f92) +$tertiary = rgb(31748f) +$surface_lowest = rgb(1b1928) general { col.active_border = $primary diff --git a/scripts/compile.sh b/scripts/compile.sh new file mode 100755 index 0000000..dd51279 --- /dev/null +++ b/scripts/compile.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Define your targets +TARGET_CLASS="kitty" +TARGET_TAG="compiler" +COMMAND_TO_SEND="!-2" + +WINDOW_ADDR=$(hyprctl clients -j | jq -r '.[] | select(.tags[]? == "compiler" and .class == "kitty") | .address') + +if [ -z "$WINDOW_ADDR" ] || [ "$WINDOW_ADDR" == "null" ]; then + notify-send "Target Error" "No window found with tag $TARGET_TAG" + exit 1 +fi + +# Focus the window +# hyprctl dispatch focuswindow address:$WINDOW_ADDR +echo $WINDOW_ADDR +hyprctl dispatch sendshortcut CTRL ,UP, address:"$WINDOW_ADDR" +# hyprctl dispatch sendshortcut ,Return, address:"$WINDOW_ADDR" +# Send the command using wtype (Wayland's xdotool alternative) +# This types the command and presses Enter +sleep 0.1 # Small delay to ensure focus has shifted