✨ feat(hypr): new rules and some dispatchers added to open nemo in some apps
This commit is contained in:
parent
61217e6904
commit
b6a7cc9550
6 changed files with 21 additions and 16 deletions
|
@ -47,7 +47,7 @@ case $app in
|
|||
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
|
||||
hyprctl dispatch exec [workspace 13] kitty
|
||||
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
|
||||
hyprctl dispatch exec "[workspace 24] kitty --class center-float"
|
||||
hyprctl dispatch exec "[workspace 24] kitty --class center-float-large"
|
||||
else
|
||||
kitty
|
||||
fi
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
## Base Rules
|
||||
$center-float = class:^(center-float)$|^(.*file-roller.*)$|^(Geeqie)$|^(.*celluloid.*)$
|
||||
$center-float-large = class:^(center-float-large)$|^(Geeqie)$|^(.*celluloid.*)$
|
||||
windowrulev2 = float,$center-float-large
|
||||
windowrulev2 = size 70% 70%,$center-float-large
|
||||
windowrulev2 = center 1,$center-float-large
|
||||
|
||||
$center-float = class:^(center-float)$|^(.*file-roller.*)$
|
||||
windowrulev2 = float,$center-float
|
||||
windowrulev2 = size 70% 70%,$center-float
|
||||
windowrulev2 = size 50% 50%,$center-float
|
||||
windowrulev2 = center 1,$center-float
|
||||
|
||||
$center-float-mini = class:^(center-float-mini)$|^(.*galculator.*)$|^(.*ytdlp-gui.*)$
|
||||
|
|
|
@ -1935,7 +1935,7 @@ map kitty_mod+x open_url_with_hints
|
|||
|
||||
#: Open with file manager
|
||||
|
||||
map kitty_mod+e launch --type=background --cwd=current sh -c "nemo $(pwd)"
|
||||
map kitty_mod+e launch --type=background --cwd=current sh -c 'hyprctl dispatch exec "[float; size 60% 60%; center 1] nemo" $(pwd)'
|
||||
|
||||
#: Insert selected path
|
||||
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
},
|
||||
"exec-if": "which waybar-module-pacman-updates",
|
||||
"exec": "waybar-module-pacman-updates",
|
||||
"on-click": "kitty --class center-float yay -Syu",
|
||||
"on-click-right": "kitty --class center-float topgrade"
|
||||
"on-click": "kitty --class center-float-large yay -Syu",
|
||||
"on-click-right": "kitty --class center-float-large topgrade"
|
||||
},
|
||||
"custom/arch": {
|
||||
"format": " ",
|
||||
|
@ -199,7 +199,7 @@
|
|||
"source": "auto",
|
||||
"stereo": true,
|
||||
"waves": false,
|
||||
"on-click": "kitty --class center-float-mini cava",
|
||||
"on-click": "kitty --class center-float-large-mini cava",
|
||||
"on-click-right": "qpwgraph"
|
||||
},
|
||||
"custom/music": {
|
||||
|
@ -425,27 +425,27 @@
|
|||
"sort-by-number": true
|
||||
},
|
||||
"cpu": {
|
||||
"on-click": "kitty --class center-float btop",
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"format": "CPU: {usage}%",
|
||||
"tooltip": false,
|
||||
"interval": 2
|
||||
},
|
||||
"custom/gpu-usage": {
|
||||
"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
|
||||
"on-click": "kitty --class center-float nvtop",
|
||||
"on-click": "kitty --class center-float-large nvtop",
|
||||
"format": "GPU: {}%",
|
||||
"return-type": "",
|
||||
"interval": 2
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% ",
|
||||
"on-click": "kitty --class center-float btop",
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"tooltip": true,
|
||||
"interval": 2
|
||||
},
|
||||
"temperature": {
|
||||
"critical-threshold": 80,
|
||||
"on-click": "kitty --class center-float btop",
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"format-critical": "{icon} {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
|
@ -455,7 +455,7 @@
|
|||
},
|
||||
"custom/gpu-temp": {
|
||||
"exec": "cat /sys/class/hwmon/hwmon1/temp1_input | cut -b 1-2",
|
||||
"on-click": "kitty --class center-float nvtop",
|
||||
"on-click": "kitty --class center-float-large nvtop",
|
||||
"format": " {}°C",
|
||||
"return-type": "",
|
||||
"interval": 2
|
||||
|
|
|
@ -36,8 +36,8 @@ syntect_theme = "~/.config/bat/themes/Catppuccin-macchiato.tmTheme"
|
|||
# : Status {{{
|
||||
|
||||
[status]
|
||||
separator_open = ""
|
||||
separator_close = ""
|
||||
separator_open = ""
|
||||
separator_close = ""
|
||||
separator_style = { fg = "#494d64", bg = "#494d64" }
|
||||
|
||||
# Mode
|
||||
|
|
|
@ -14,7 +14,7 @@ cache_dir = ""
|
|||
|
||||
[opener]
|
||||
folder = [
|
||||
{ exec = 'hyprctl dispatch exec "[float] nemo" "$@"', desc = "Open in GUI File Manager" },
|
||||
{ exec = 'hyprctl dispatch exec "[float; size 60% 60%; center 1] nemo" "$@"', desc = "Open in GUI File Manager" },
|
||||
{ exec = '$EDITOR "$@"' },
|
||||
]
|
||||
archive = [{ exec = 'file-roller "$1"', desc = "Extract here" }]
|
||||
|
|
Loading…
Add table
Reference in a new issue