mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 20:10:03 +02:00
update hyprland config
This commit is contained in:
parent
bb62416c69
commit
951e5c5a7d
2 changed files with 47 additions and 21 deletions
|
|
@ -1,18 +1,11 @@
|
||||||
# Monitors
|
|
||||||
# -----------------------------------------
|
|
||||||
|
|
||||||
$mainMonitor=DP-1
|
|
||||||
$secondMonitor=HDMI-A-1
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
|
||||||
#monitor=,preferred,auto,auto
|
|
||||||
monitor=$mainMonitor,preferred,0x0,1
|
|
||||||
monitor=$secondMonitor,1920x1080@60,760x-1080,1
|
|
||||||
|
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
# -----------------------------------------
|
# -----------------------------------------
|
||||||
|
|
||||||
|
# monitors
|
||||||
|
$mainMonitor=DP-2
|
||||||
|
$secondMonitor=HDMI-A-1
|
||||||
|
|
||||||
# colors
|
# colors
|
||||||
$color_border = rgb(1a1c2d)
|
$color_border = rgb(1a1c2d)
|
||||||
$color_active_border = $color_border
|
$color_active_border = $color_border
|
||||||
|
|
@ -23,6 +16,7 @@ $terminal = alacritty
|
||||||
$menu = wofi --show drun
|
$menu = wofi --show drun
|
||||||
$run_prog = wofi --show run
|
$run_prog = wofi --show run
|
||||||
$screenshot = grim -g "$(slurp)" - | wl-copy
|
$screenshot = grim -g "$(slurp)" - | wl-copy
|
||||||
|
$focusOrStart = .config/hypr/scripts/focus-or-start.sh
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
# -----------------------------------------
|
# -----------------------------------------
|
||||||
|
|
@ -32,7 +26,6 @@ env = XCURSOR_SIZE,22
|
||||||
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
|
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
|
||||||
env = WLR_NO_HARDWARE_CURSORS,1
|
env = WLR_NO_HARDWARE_CURSORS,1
|
||||||
|
|
||||||
|
|
||||||
general {
|
general {
|
||||||
gaps_in = 0,0,-1,-1
|
gaps_in = 0,0,-1,-1
|
||||||
gaps_out = -1
|
gaps_out = -1
|
||||||
|
|
@ -45,15 +38,18 @@ general {
|
||||||
|
|
||||||
input {
|
input {
|
||||||
kb_layout = pnx-us-se
|
kb_layout = pnx-us-se
|
||||||
kb_variant =
|
# kb_variant =
|
||||||
kb_model =
|
# kb_model =
|
||||||
kb_options =
|
# kb_options =
|
||||||
kb_rules =
|
# kb_rules =
|
||||||
|
|
||||||
follow_mouse = 1
|
follow_mouse = 1
|
||||||
|
accel_profile = flat
|
||||||
|
force_no_accel = true
|
||||||
}
|
}
|
||||||
|
|
||||||
cursor {
|
cursor {
|
||||||
|
no_hardware_cursors = true
|
||||||
enable_hyprcursor = true
|
enable_hyprcursor = true
|
||||||
|
|
||||||
# Dont hide my cursor!
|
# Dont hide my cursor!
|
||||||
|
|
@ -102,6 +98,19 @@ debug {
|
||||||
disable_logs = false
|
disable_logs = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ecosystem {
|
||||||
|
no_update_news = true
|
||||||
|
no_donation_nag = true
|
||||||
|
}
|
||||||
|
|
||||||
|
# Monitors
|
||||||
|
# -----------------------------------------
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
|
#monitor=,preferred,auto,auto
|
||||||
|
monitor=$mainMonitor,preferred,0x0,1
|
||||||
|
monitor=$secondMonitor,1920x1080@60,760x-1080,1
|
||||||
|
|
||||||
# Workspaces and windows
|
# Workspaces and windows
|
||||||
# -----------------------------------------
|
# -----------------------------------------
|
||||||
|
|
||||||
|
|
@ -120,13 +129,17 @@ windowrulev2 = workspace 5, class:org.telegram.desktop.*
|
||||||
|
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
bind = $mainMod, Return, exec, $terminal
|
# programs
|
||||||
bind = $mainMod, S, exec, $screenshot
|
|
||||||
bind = $mainMod, X, killactive,
|
|
||||||
#bind = $mainMod, M, exit,
|
|
||||||
bind = $mainMod, F, togglefloating,
|
|
||||||
bind = $mainMod, D, exec, $menu
|
bind = $mainMod, D, exec, $menu
|
||||||
bind = $mainMod, P, exec, $run_prog
|
bind = $mainMod, P, exec, $run_prog
|
||||||
|
bind = $mainMod, Return, exec, $terminal
|
||||||
|
bind = $mainMod, T, exec, $focusOrStart "telegram" "org.telegram"
|
||||||
|
bind = $mainMod, G, exec, $focusOrStart "vivaldi-stable" "vivaldi-stable"
|
||||||
|
bind = $mainMod, S, exec, $screenshot
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
bind = $mainMod, X, killactive,
|
||||||
|
bind = $mainMod, F, togglefloating,
|
||||||
bind = $mainMod, V, togglesplit, # dwindle
|
bind = $mainMod, V, togglesplit, # dwindle
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
|
|
|
||||||
13
hypr/scripts/focus-or-start.sh
Executable file
13
hypr/scripts/focus-or-start.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
execCommand=$1
|
||||||
|
className=$2
|
||||||
|
|
||||||
|
class=$(hyprctl -j clients | jq -r ".[] | select(.class | startswith(\"${className}\")) | .class")
|
||||||
|
|
||||||
|
if [[ $class != "" ]]
|
||||||
|
then
|
||||||
|
hyprctl dispatch focuswindow "class:${class}"
|
||||||
|
else
|
||||||
|
${execCommand} &
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue