Fix windowrules and add host-config
This commit is contained in:
parent
17d13449cc
commit
94dfc20b24
4 changed files with 62 additions and 17 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1 +1,3 @@
|
||||||
hypr/menu-*.list
|
hypr/menu-*.list
|
||||||
|
hypr/hosts/*
|
||||||
|
!hpyr/hosts/example-host.conf
|
||||||
|
|
|
||||||
12
README.md
12
README.md
|
|
@ -48,13 +48,23 @@ cd ~/Projects/
|
||||||
git clone https://git.jeena.net/jeena/hypr-dotfiles.git
|
git clone https://git.jeena.net/jeena/hypr-dotfiles.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The next step is to set up a hostname config where you can overwrite
|
||||||
|
hyprland configs for a specific host:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd ~/Projects/hypr-dotfiles/hypr/hosts/
|
||||||
|
touch $(hostname).conf
|
||||||
|
ln -s $(hostname).conf host.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Then you need to soft link the directories in this git repo to the
|
Then you need to soft link the directories in this git repo to the
|
||||||
`~/.config/` directory, make sure that those directories don't exist
|
`~/.config/` directory, make sure that those directories don't exist
|
||||||
yet in your `~/.config`, you will need to delete or move them
|
yet in your `~/.config`, you will need to delete or move them
|
||||||
before. In our example it would be:
|
before. In our example it would be:
|
||||||
|
|
||||||
```
|
```
|
||||||
cd ~/config
|
cd ~/.config
|
||||||
ln -s ~/Projects/hypr-dotfiles/hypr hypr
|
ln -s ~/Projects/hypr-dotfiles/hypr hypr
|
||||||
ln -s ~/Projects/hypr-dotfiles/waybar waybar
|
ln -s ~/Projects/hypr-dotfiles/waybar waybar
|
||||||
ln -s ~/Projects/hypr-dotfiles/tofi tofi
|
ln -s ~/Projects/hypr-dotfiles/tofi tofi
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ env = HYPRSHOT_DIR,Screenshots
|
||||||
################
|
################
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
# monitor=,preferred,auto,auto
|
# Safe default for any machine
|
||||||
monitor=DP-1, 2560x1440@74.97Hz, 0x0, 1
|
monitor = ,preferred,auto,1
|
||||||
|
|
||||||
###################
|
###################
|
||||||
### MY PROGRAMS ###
|
### MY PROGRAMS ###
|
||||||
|
|
@ -298,14 +298,25 @@ bindl = , XF86AudioPrev, exec, playerctl previous
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||||
|
|
||||||
# Example windowrule
|
windowrule {
|
||||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
name = suppress-maximize
|
||||||
# windowrule = float,class:org.keepassxc.KeePassXC
|
match:class = .*
|
||||||
|
suppress_event = maximize
|
||||||
|
}
|
||||||
|
|
||||||
# Ignore maximize requests from apps. You'll probably like this.
|
windowrule {
|
||||||
windowrulev2 = suppress_event maximize, match:class:.*
|
name = xwayland-nofocus-fix
|
||||||
|
match:class = ^$
|
||||||
|
match:title = ^$
|
||||||
|
match:xwayland = 1
|
||||||
|
match:float = 1
|
||||||
|
match:fullscreen = 0
|
||||||
|
match:pin = 0
|
||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
no_focus = on
|
||||||
windowrulev2 = nofocus, class:^$, title:^$, xwayland:1, floating:1, fullscreen:0, pinned:0
|
}
|
||||||
|
|
||||||
source = ~/.config/hypr/windowrule.conf
|
source = ~/.config/hypr/windowrule.conf
|
||||||
|
|
||||||
|
# Host overrides
|
||||||
|
source = ~/.config/hypr/hosts/host.conf
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,31 @@
|
||||||
# Librewolf Picture-in-Picture
|
# LibreWolf Picture-in-Picture
|
||||||
windowrulev2 = float, class:($browser),title:(Picture-in-Picture)
|
windowrule {
|
||||||
windowrulev2 = pin, class:($browser),title:(Picture-in-Picture)
|
name = librewolf-pip
|
||||||
windowrulev2 = opacity 1.0 override 1.0 override, match:class:($browser), match:title:(Picture-in-Picture)
|
match:class = ($browser)
|
||||||
|
match:title = (Picture-in-Picture)
|
||||||
|
|
||||||
|
float = on
|
||||||
|
pin = on
|
||||||
|
opacity = 1.0 override 1.0 override
|
||||||
|
}
|
||||||
|
|
||||||
# Cheatsheet
|
# Cheatsheet
|
||||||
windowrulev2 = float, class:net.jeena.Cheatsheet
|
windowrule {
|
||||||
windowrulev2 = center, class:net.jeena.Cheatsheet
|
name = cheatsheet-window
|
||||||
windowrulev2 = stayfocused, class:net.jeena.Cheatsheet
|
match:class = net.jeena.Cheatsheet
|
||||||
|
|
||||||
|
float = on
|
||||||
|
center = on
|
||||||
|
}
|
||||||
|
|
||||||
|
windowrule {
|
||||||
|
name = chromium-ws3
|
||||||
|
match:class = chromium
|
||||||
|
workspace = 3 silent
|
||||||
|
}
|
||||||
|
|
||||||
|
windowrule {
|
||||||
|
name = keepassxc-magic
|
||||||
|
match:class = org.keepassxc.KeePassXC
|
||||||
|
workspace = special:magic silent
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue