added compiler keybind
This commit is contained in:
@@ -11,12 +11,20 @@ bind = $mainMod, W, exec, $terminal --class popup-term
|
|||||||
bind = $mainMod, C, killactive,
|
bind = $mainMod, C, killactive,
|
||||||
bind = $mainMod SHIFT CTRL, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
|
bind = $mainMod SHIFT CTRL, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
|
||||||
bind = $mainMod, E, exec, $fileManager
|
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
|
# 2. moving focus with vim
|
||||||
bind = $mainMod, H, movefocus, l
|
bind = $mainMod, H, movefocus, l
|
||||||
@@ -132,7 +140,7 @@ bind = $mainMod, T, exec, kdeconnect-app
|
|||||||
# This will toggle HyprExpo when SUPER+g is pressed
|
# This will toggle HyprExpo when SUPER+g is pressed
|
||||||
|
|
||||||
### GESTURES
|
### GESTURES
|
||||||
# gesture = 3, up, dispatcher, hyprexpo:expo
|
gesture = 3, up, dispatcher, hyprexpo:expo
|
||||||
# gesture = 3, pinch, special, magic
|
# gesture = 3, pinch, special, magic
|
||||||
gesture = 3, down, special, magic
|
gesture = 3, down, special, magic
|
||||||
# gesture = 3, up, dispatcher, overview:toggle
|
# gesture = 3, up, dispatcher, overview:toggle
|
||||||
|
|||||||
@@ -4,16 +4,16 @@
|
|||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
||||||
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
||||||
|
|
||||||
# Example windowrules that are useful
|
|
||||||
windowrule{
|
windowrule{
|
||||||
name = calculator
|
name = compiler-window
|
||||||
match:class = calc-term
|
match:tag = compiler
|
||||||
|
border_color = rgba(ccaaffee)
|
||||||
opacity = 0.7
|
# col.inactive_border = rgba(333333aa)
|
||||||
float = on
|
border_size = 2
|
||||||
center = true
|
float = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# put vesktop in a special workspace
|
||||||
windowrule{
|
windowrule{
|
||||||
name = discord
|
name = discord
|
||||||
match:class = vesktop
|
match:class = vesktop
|
||||||
@@ -55,6 +55,7 @@ windowrule {
|
|||||||
pseudo = yes
|
pseudo = yes
|
||||||
float = yes
|
float = yes
|
||||||
center = true
|
center = true
|
||||||
|
opacity = 1
|
||||||
# move = cursor_x-10 cursor_y-10
|
# move = cursor_x-10 cursor_y-10
|
||||||
size = monitor_w*.4 monitor_h*.4
|
size = monitor_w*.4 monitor_h*.4
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
background = rgba(291414ff)
|
background = rgba(191724ff)
|
||||||
base = rgba(291414ff)
|
base = rgba(191724ff)
|
||||||
text = rgba(f3f2f2ff)
|
text = rgba(e0def4ff)
|
||||||
alternate_base = rgba(371b1bff)
|
alternate_base = rgba(26233aff)
|
||||||
bright_text = rgba(251818ff)
|
bright_text = rgba(191724ff)
|
||||||
accent = rgba(e46767ff)
|
accent = rgba(ebbcbaff)
|
||||||
accent_secondary = rgba(d6995cff)
|
accent_secondary = rgba(9ccfd8ff)
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
$primary = rgb(e46767)
|
$primary = rgb(ebbcba)
|
||||||
$surface = rgb(291414)
|
$surface = rgb(191724)
|
||||||
$secondary = rgb(d6995c)
|
$secondary = rgb(9ccfd8)
|
||||||
$error = rgb(fd4663)
|
$error = rgb(eb6f92)
|
||||||
$tertiary = rgb(cccc66)
|
$tertiary = rgb(31748f)
|
||||||
$surface_lowest = rgb(150a0a)
|
$surface_lowest = rgb(1b1928)
|
||||||
|
|
||||||
general {
|
general {
|
||||||
col.active_border = $primary
|
col.active_border = $primary
|
||||||
|
|||||||
22
scripts/compile.sh
Executable file
22
scripts/compile.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user