Improve hyprland and waybar configs

This commit is contained in:
Tobias Reisinger 2023-07-01 13:05:41 +02:00
parent ceea1c316a
commit 32a6ce75bd
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 77 additions and 43 deletions

View file

@ -23,6 +23,7 @@ declare -A mapper=(
["sxhkd"]="$HOME/.config/sxhkd/sxhkdrc" ["sxhkd"]="$HOME/.config/sxhkd/sxhkdrc"
["vim"]="$HOME/.config/vim/vimrc" ["vim"]="$HOME/.config/vim/vimrc"
["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg.tpl" ["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg.tpl"
["waybar"]="$HOME/.config/waybar/"
["xprofile"]="$HOME/.xprofile" ["xprofile"]="$HOME/.xprofile"
["zsh"]="$HOME/.config/zsh/.zshrc" ["zsh"]="$HOME/.config/zsh/.zshrc"
) )

View file

@ -90,9 +90,9 @@ _autostart_run_graphical () {
start-audio pipewire start-audio pipewire
wait-for-service "network-online.target" wait-for-service "network-online.target"
if ! pgrep -x keepassxc if ! pgrep keepassxc >/dev/null
then then
if pass if pass x
then then
(pass keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) & (pass keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) &
fi fi

View file

@ -49,22 +49,20 @@ decoration {
blur = yes blur = yes
blur_size = 3 blur_size = 3
blur_passes = 1 blur_passes = 1
blur_new_optimizations = on blur_new_optimizations = true
} }
animations { animations {
enabled = yes enabled = true
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05 bezier = overshot, 0.05, 0.9, 0.1, 1.1
animation = windows, 1, 7, myBezier animation = windows, 1, 3, overshot, slide
animation = windowsOut, 1, 7, default, popin 80% animation = fade, 1, 6, default
animation = border, 1, 10, default animation = border, 1, 6, default
animation = borderangle, 1, 8, default animation = workspaces, 1, 6, overshot, slide
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
} }
dwindle { dwindle {

View file

@ -9,6 +9,7 @@ bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, j4-dmenu-desktop --dmenu="$DMENU" bind = $mainMod, D, exec, j4-dmenu-desktop --dmenu="$DMENU"
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, Pause, exec, menu-shutdown
bind = $mainMod SHIFT, R, exec, autostart-manage run-wayland bind = $mainMod SHIFT, R, exec, autostart-manage run-wayland

View file

@ -1,19 +1,19 @@
### Workspace rules ### Workspace rules
windowrulev2 = workspace $ws_web,class:(qutebrowser) windowrulev2 = workspace $ws_web silent, class:(qutebrowser)
windowrulev2 = workspace $ws_web,class:(firefox) windowrulev2 = workspace $ws_web, class:(firefox)
windowrulev2 = workspace $ws_focus,class:^(jetbrains-) windowrulev2 = workspace $ws_focus, class:^(jetbrains-)
windowrulev2 = workspace $ws_media,class:(Chromium) windowrulev2 = workspace $ws_media, class:(Chromium)
windowrulev2 = workspace $ws_media,class:(FreeTube) windowrulev2 = workspace $ws_media, class:(FreeTube)
windowrulev2 = workspace $ws_voip,class:(discord) windowrulev2 = workspace $ws_voip silent, class:(discord)
windowrulev2 = workspace $ws_voip,class:(Element) windowrulev2 = workspace $ws_voip silent, class:(Element)
windowrulev2 = workspace $ws_voip,class:(TeamSpeak 3) windowrulev2 = workspace $ws_voip silent, class:(TeamSpeak 3)
windowrulev2 = workspace $ws_msg,class:(thunderbird) windowrulev2 = workspace $ws_msg silent, class:(thunderbird)
windowrulev2 = workspace $ws_msg,class:(Signal) windowrulev2 = workspace $ws_msg silent, class:(Signal)
### Specific rules ### Specific rules
@ -21,4 +21,4 @@ windowrulev2 = workspace $ws_msg,class:(Signal)
#windowrulev2 = workspace $ws_steam silent,class:(steam) # Moves menues too :/ #windowrulev2 = workspace $ws_steam silent,class:(steam) # Moves menues too :/
#windowrulev2 = noinitialfocus,class:(steam) # No focus on menues :/ #windowrulev2 = noinitialfocus,class:(steam) # No focus on menues :/
windowrulev2 = fullscreen,class:(FreeTube) windowrulev2 = fullscreen, class:(FreeTube)

View file

@ -2,7 +2,7 @@
"layer": "top", "layer": "top",
"position": "bottom", "position": "bottom",
"height": 24, "height": 24,
"spacing": 4, "spacing": 6,
"modules-left": [ "modules-left": [
"wlr/workspaces" "wlr/workspaces"
], ],
@ -10,11 +10,10 @@
], ],
"modules-right": [ "modules-right": [
"network", "network",
"cpu",
"temperature", "temperature",
"cpu",
"memory", "memory",
"custom/pacman", "custom/pacman",
"idle_inhibitor",
"custom/weather", "custom/weather",
"clock", "clock",
"tray" "tray"
@ -57,9 +56,22 @@
"max-length": 128 "max-length": 128
}, },
"clock": { "clock": {
"format": "{:%Y-%m-%d %H:%M:%S}", "interval": 1,
"format": " {:%Y-%m-%d %H:%M:%S}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>" "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
}, },
"cpu": {
"format": " {usage}%"
},
"memory": {
"format": " {percentage}%"
},
"network": {
"format": " {ipaddr}"
},
"temperature": {
"format": " {temperatureC}°C"
},
"tray": { "tray": {
"spacing": 4 "spacing": 4
}, },

View file

@ -1,36 +1,58 @@
@import url("./colors.css"); @import url("./colors.css");
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
font-family: Iosevka;
font-size: 11pt; font-family: "JetBrains Mono", monospace;
font-size: 10pt;
min-height: 0; min-height: 0;
} }
window#waybar { window#waybar {
opacity: 1;
background: @background-darker; background: @background-darker;
color: @foreground; color: @foreground;
border-bottom: 2px solid @background;
} }
#clock {
border-bottom: solid 2px @yellow;
}
#cpu {
border-bottom: solid 2px @purple;
}
#memory {
border-bottom: solid 2px @pink;
}
#network {
border-bottom: solid 2px @green;
}
#temperature {
border-bottom: solid 2px @red;
}
#workspaces button { #workspaces button {
padding: 0 10px; background: none;
background: @background; border-bottom: solid 2px @background;
color: @foreground;
} }
#workspaces button:hover { #workspaces button:hover {
box-shadow: inherit; border-bottom: solid 2px @selection;
text-shadow: inherit;
background-image: linear-gradient(0deg, @selection, @background-darker);
} }
#workspaces button.active, #workspaces button.active,
#workspaces button.focused, #workspaces button.focused,
#workspaces button.visible { #workspaces button.visible {
background-image: linear-gradient(0deg, @purple, @selection); border-bottom: solid 2px @purple;
} }
#taskbar button.active {
background-image: linear-gradient(0deg, @pruple, @background-darker);
#custom-weather {
border-bottom: solid 2px @green;
} }
#clock {
padding: 0 4px; #custom-pacman {
background: @background; border-bottom: solid 2px @cyan;
} }