Update hypr conf

This commit is contained in:
Thomas Forgione 2026-01-06 11:03:50 +01:00
parent 714fcbb6a0
commit d613c14cd9
3 changed files with 19 additions and 16 deletions

View File

@ -153,7 +153,7 @@ animations {
# windowrule = rounding 0, floating:0, onworkspace:f[1] # windowrule = rounding 0, floating:0, onworkspace:f[1]
# Borders only on alacritty # Borders only on alacritty
windowrule = noborder, class:negative:Alacritty windowrule = border_size 0, match:class negative:Alacritty
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle { dwindle {
@ -327,18 +327,18 @@ bindl = , XF86AudioPrev, exec, playerctl previous
# windowrule = float,class:^(kitty)$,title:^(kitty)$ # windowrule = float,class:^(kitty)$,title:^(kitty)$
# Ignore maximize requests from apps. You'll probably like this. # Ignore maximize requests from apps. You'll probably like this.
windowrule = suppressevent maximize, class:.* # windowrule = suppressevent maximize, match:class .*
# Fix some dragging issues with XWayland # Fix some dragging issues with XWayland
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 # windowrule = no_focus on,match:class ^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
# Nvidia config # Nvidia config
env = LIBVA_DRIVER_NAME,nvidia env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = __GLX_VENDOR_LIBRARY_NAME,nvidia
# Flameshot # Flameshot
windowrule = pin, class:flameshot,title:flameshot-pin # windowrule = pin, class:flameshot,title:flameshot-pin
windowrule = float, class:flameshot,title:flameshot-pin # windowrule = float, class:flameshot,title:flameshot-pin
windowrule = noborder, class:flameshot,title:flameshot-pin # windowrule = noborder, class:flameshot,title:flameshot-pin
windowrule = noblur, class:flameshot,title:flameshot-pin # windowrule = noblur, class:flameshot,title:flameshot-pin
windowrule = noshadow, class:flameshot,title:flameshot-pin # windowrule = noshadow, class:flameshot,title:flameshot-pin

View File

@ -1,2 +1,5 @@
preload = /home/thomas/.config/awesome/Wallpapers/cobra-kai-1.png wallpaper {
wallpaper = , /home/thomas/.config/awesome/Wallpapers/cobra-kai-1.png monitor =
path = /home/thomas/.config/awesome/Wallpapers/cobra-kai-1.png
fit_mode = cover
}

View File

@ -138,12 +138,12 @@ class Workspace:
""" """
new_id = (self.id - 1) // 10 * 10 + n new_id = (self.id - 1) // 10 * 10 + n
subprocess.run(['hyprctl', 'dispatch', 'movetoworkspace' if move else 'workspace', str(new_id)])
current = monitor.special_workspace current = monitor.special_workspace
if current is not None: if current is not None:
subprocess.run(['hyprctl', 'dispatch', 'togglespecialworkspace', current.special_name()]) subprocess.run(['hyprctl', 'dispatch', 'togglespecialworkspace', current.special_name()])
subprocess.run(['hyprctl', 'dispatch', 'movetoworkspace' if move else 'workspace', str(new_id)])
def previous(self, monitor: Monitor, move: bool = False): def previous(self, monitor: Monitor, move: bool = False):
""" """
Goes to the previous workspace on the same monitor, or the last if we're on the first. Goes to the previous workspace on the same monitor, or the last if we're on the first.
@ -157,12 +157,12 @@ class Workspace:
if new_id % 10 == 0: if new_id % 10 == 0:
new_id += 10 new_id += 10
subprocess.run(['hyprctl', 'dispatch', 'movetoworkspace' if move else 'workspace', str(new_id)])
current = monitor.special_workspace current = monitor.special_workspace
if current is not None: if current is not None:
subprocess.run(['hyprctl', 'dispatch', 'togglespecialworkspace', current.special_name()]) subprocess.run(['hyprctl', 'dispatch', 'togglespecialworkspace', current.special_name()])
subprocess.run(['hyprctl', 'dispatch', 'movetoworkspace' if move else 'workspace', str(new_id)])
def next(self, monitor: Monitor, move: bool = False): def next(self, monitor: Monitor, move: bool = False):
""" """
Goes to the next workspace on the same monitor, or the first if we're on the last. Goes to the next workspace on the same monitor, or the first if we're on the last.
@ -176,12 +176,12 @@ class Workspace:
if new_id % 10 == 1: if new_id % 10 == 1:
new_id -= 10 new_id -= 10
subprocess.run(['hyprctl', 'dispatch', 'movetoworkspace' if move else 'workspace', str(new_id)])
current = monitor.special_workspace current = monitor.special_workspace
if current is not None: if current is not None:
subprocess.run(['hyprctl', 'dispatch', 'togglespecialworkspace', current.special_name()]) subprocess.run(['hyprctl', 'dispatch', 'togglespecialworkspace', current.special_name()])
subprocess.run(['hyprctl', 'dispatch', 'movetoworkspace' if move else 'workspace', str(new_id)])
def to_bar(x): def to_bar(x):
return bars[round((len(bars) - 1) * x / 100)] return bars[round((len(bars) - 1) * x / 100)]