1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00

updated waybar & pyprland configs

changelog:
- added `privacy` module for waybar
- added `systemd-failed-units` module for waybar
- added `toggle_special` plugin for pyprland
- added `shortcuts_menu` plugin for pyprland
- deleted spical workspaces configs for scratchpads in hyprland
- added additional keybinding for color picker
- fixed pavucontrol
- deleted microphone indicator from top-right icons in waybar
This commit is contained in:
xnm
2024-05-11 21:35:26 +03:00
parent 2ee6f3e0ec
commit 345f1856ee
4 changed files with 51 additions and 21 deletions

View File

@@ -197,16 +197,14 @@ submap=reset
bind = $mainMod CTRL, T, exec, pypr toggle term bind = $mainMod CTRL, T, exec, pypr toggle term
$dropterm = ^(wezterm_dropdown)$ $dropterm = ^(wezterm_dropdown)$
windowrule = float, $dropterm windowrule = float, $dropterm
windowrule = workspace special:scratch_term silent, $dropterm
bind = $mainMod CTRL, V, exec, pypr toggle volume bind = $mainMod CTRL, V, exec, pypr toggle volume
$volume_sidemenu = ^(pavucontrol)$ $volume_sidemenu = ^(pavucontrol)$
windowrule = float, $volume_sidemenu windowrule = float, $volume_sidemenu
windowrule = workspace special:scratch_volume silent, $volume_sidemenu
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod CTRL, M, togglespecialworkspace, minimized bind = $mainMod CTRL, M, togglespecialworkspace, minimized
bind = $mainMod, M, exec, pypr toggle_minimized bind = $mainMod, M, exec, pypr toggle_special minimized
bind = $mainMod CTRL, E, exec, pypr expose bind = $mainMod CTRL, E, exec, pypr expose
bind = $mainMod, Z, exec, pypr zoom bind = $mainMod, Z, exec, pypr zoom
@@ -233,6 +231,7 @@ bind = $mainMod, U, exec, fish -c bookmark_to_type
bind = $mainMod SHIFT, U, exec, fish -c bookmark_add bind = $mainMod SHIFT, U, exec, fish -c bookmark_add
bind = $mainMod CTRL, U, exec, fish -c bookmark_delete bind = $mainMod CTRL, U, exec, fish -c bookmark_delete
bind = $mainMod, C, exec, hyprpicker -a bind = $mainMod, C, exec, hyprpicker -a
bind = $mainMod SHIFT, C, exec, pypr menu "Color picker"
bind = $mainMod SHIFT, Q, killactive bind = $mainMod SHIFT, Q, killactive
bind = $mainMod SHIFT, F, togglefloating, bind = $mainMod SHIFT, F, togglefloating,
bind = $mainMod CTRL, F, fullscreen, 0 bind = $mainMod CTRL, F, fullscreen, 0

View File

@@ -3,20 +3,32 @@ plugins = [
"scratchpads", "scratchpads",
"magnify", "magnify",
"expose", "expose",
"shortcuts_menu",
"toggle_special",
] ]
[scratchpads.term] [scratchpads.term]
command = "wezterm start --class wezterm_dropdown" command = "wezterm start --always-new-process --class wezterm_dropdown"
animation = "fromTop" animation = "fromTop"
unfocus = "hide" unfocus = "hide"
excludes = "*" excludes = "*"
lazy = true lazy = true
multi = false
[scratchpads.volume] [scratchpads.volume]
command = "pavucontrol --class volume_sidemenu" command = "pavucontrol --class volume_sidemenu"
animation = "fromRight" animation = "fromLeft"
class = "volume_sidemenu" class = "volume_sidemenu"
size = "40% 70%" size = "40% 70%"
unfocus = "hide" unfocus = "hide"
excludes = "*" excludes = "*"
lazy = true lazy = true
margin = 90
multi = false
[shortcuts_menu.entries]
"Color picker" = [
{name="format", options=["hex", "rgb", "hsv", "hsl", "cmyk"]},
"sleep 0.2; hyprpicker --format [format] -a" # sleep to let the menu close before the picker opens
]

View File

@@ -164,8 +164,8 @@
"group/misc": { "group/misc": {
"orientation": "horizontal", "orientation": "horizontal",
"modules": [ "modules": [
"pulseaudio#microphone_indicator",
"custom/webcam", "custom/webcam",
"privacy",
"custom/recording", "custom/recording",
"custom/geo", "custom/geo",
"custom/media", "custom/media",
@@ -176,19 +176,26 @@
], ],
}, },
"pulseaudio#microphone_indicator": {
"format": "{format_source}",
"format-source": "󰍬",
"format-source-muted": "",
"tooltip-format": "microphone on",
},
"custom/webcam": { "custom/webcam": {
"interval": 1, "interval": 1,
"exec": "fish -c check_webcam", "exec": "fish -c check_webcam",
"return-type": "json", "return-type": "json",
}, },
"privacy": {
"icon-spacing": 1,
"icon-size": 12,
"transition-duration": 250,
"modules": [
{
"type": "audio-in",
},
{
"type": "screenshare",
},
]
},
"custom/recording": { "custom/recording": {
"interval": 1, "interval": 1,
"exec-if": "pgrep wl-screenrec", "exec-if": "pgrep wl-screenrec",
@@ -267,6 +274,7 @@
"format-en": "🇺🇸 ENG (US)", "format-en": "🇺🇸 ENG (US)",
"format-uk": "🇺🇦 UKR", "format-uk": "🇺🇦 UKR",
"format-ru": "🇷🇺 RUS", "format-ru": "🇷🇺 RUS",
"keyboard-name": "at-translated-set-2-keyboard",
"on-click": "hyprctl switchxkblayout at-translated-set-2-keyboard next", "on-click": "hyprctl switchxkblayout at-translated-set-2-keyboard next",
}, },
@@ -298,7 +306,7 @@
"margin-top": 10, "margin-top": 10,
"margin-bottom": 10, "margin-bottom": 10,
"modules-left": ["wlr/taskbar"], "modules-left": ["wlr/taskbar"],
"modules-center": ["cpu", "memory", "disk", "temperature", "battery", "backlight", "pulseaudio"], "modules-center": ["cpu", "memory", "disk", "temperature", "battery", "backlight", "pulseaudio", "systemd-failed-units"],
"modules-right": ["tray"], "modules-right": ["tray"],
// Modules Config // Modules Config
@@ -445,5 +453,9 @@
"reverse-mouse-scrolling": true, "reverse-mouse-scrolling": true,
"on-click": "pavucontrol", "on-click": "pavucontrol",
}, },
"systemd-failed-units": {
"format": "✗ {nr_failed}",
},
}, },
] ]

View File

@@ -202,19 +202,22 @@ window.top_bar .modules-center {
margin-right: 2; margin-right: 2;
} }
#custom-media {}
#custom-media.Paused { #custom-media.Paused {
color: @subtext0; color: @subtext0;
} }
#pulseaudio.microphone_indicator {
color: @pink;
margin-right: 4;
}
#custom-webcam { #custom-webcam {
color: @maroon; color: @maroon;
margin-right: 3;
}
#privacy-item.screenshare {
color: @peach;
margin-right: 5;
}
#privacy-item.audio-in {
color: @pink;
margin-right: 4; margin-right: 4;
} }
@@ -429,3 +432,7 @@ window.left_bar .modules-center {
#pulseaudio.high { #pulseaudio.high {
color: @subtext1; color: @subtext1;
} }
#systemd-failed-units {
color: @red;
}