Merged two hypridle brightness timeouts into one

Added 2 persistent workspaces for firefox and kitty in hyprland
Changed waybar font from FontAwesome to CaskaydiaCoveNF
Changed waybar hyprland workspaces style to accomodate for 2 persistent workspaces
This commit is contained in:
Egor 2024-09-04 17:29:00 +03:00
parent c7418d82df
commit bd1f1ae946
4 changed files with 14 additions and 23 deletions

View file

@ -6,15 +6,8 @@ general {
listener { listener {
timeout = 180 # 3 min. timeout = 180 # 3 min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. on-timeout = brightnessctl -s set 10; brightnessctl -d kbd_backlight -s set 0% # set monitor and kbd backlight to minimum
on-resume = brightnessctl -r # monitor backlight restore. on-resume = brightnessctl -r; brightnessctl -d kbd_backlight -r # backlight restore.
}
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
listener {
timeout = 180 # 3 min.
on-timeout = brightnessctl -d kbd_backlight -s set 0% # turn off keyboard backlight.
on-resume = brightnessctl -d kbd_backlight -r # turn on keyboard backlight.
} }
listener { listener {
@ -24,5 +17,5 @@ listener {
listener { listener {
timeout = 600 # 10 min timeout = 600 # 10 min
on-timeout = systemctl suspend # suspend pc on-timeout = systemctl suspend # suspend pc
} }

View file

@ -143,6 +143,9 @@ windowrulev2 = opacity 0.9, class:(kitty)
windowrulev2 = opacity 0.9, class:(dunst) windowrulev2 = opacity 0.9, class:(dunst)
windowrulev2 = float, class:(imv) windowrulev2 = float, class:(imv)
workspace = 1, persistent:true, on-created-empty:firefox
workspace = 2, persistent:true, on-created-empty:kitty
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER $mainMod = SUPER
@ -213,9 +216,6 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
# bind = $mainMod, S, togglespecialworkspace, magic # bind = $mainMod, S, togglespecialworkspace, magic
# bind = $mainMod SHIFT, S, movetoworkspace, special:magic # bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, Control_L, movewindow bindm = $mainMod, Control_L, movewindow

View file

@ -34,15 +34,13 @@
"hyprland/workspaces": { "hyprland/workspaces": {
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"default": "", "1": "󰈹",
"active": "", "2": "",
"empty": "", "default": ""
"persistent": "",
"special": "",
"urgent": "",
}, },
"on-scroll-up": "hyprctl dispatch workspace e+1", "persistent-workspaces": {
"on-scroll-down": "hyprctl dispatch workspace e-1" "*": 2
}
}, },
"wireplumber": { "wireplumber": {
"format": "{icon} {volume}%", "format": "{icon} {volume}%",

View file

@ -1,7 +1,7 @@
@import "mocha.css"; @import "mocha.css";
* { * {
font-family: 'Rubik Medium', 'Font Awesome 6 Free', 'Font Awesome 6 Brands', monospace; font-family: 'Rubik Medium', 'CaskaydiaCove Nerd Font', monospace;
font-size: 13px; font-size: 13px;
} }
@ -55,7 +55,7 @@ button:hover {
} }
#workspaces button { #workspaces button {
padding: 0 5px; padding-right: 12px;
background-color: transparent; background-color: transparent;
color: #ffffff; color: #ffffff;
} }