This commit is contained in:
2025-08-24 03:57:07 +01:00
parent e803476822
commit 24b1983a79
3 changed files with 11 additions and 4 deletions

View File

@@ -37,7 +37,8 @@ $ar_rpc = /usr/bin/arrpc
$polkit = systemctl --user start hyprpolkitagent
$vesktop = vesktop
$telegram = Telegram
$qbit = qbittorrent
$obs = obs --startreplaybuffer --disable-shutdown-check
$toggleSpeaker = wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
$toggleMic = wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
@@ -57,6 +58,8 @@ exec-once = $ar_rpc
exec-once = $polkit
exec-once = $vesktop
exec-once = $telegram
exec-once = $qbit
exec-once = $obs
#todo move to proper place
exec-once = pw-loopback -m '[ FL FR]' --capture-props='media.class=Audio/Sink node.name=GameAudioSink' -n GameAudioSink &
@@ -73,6 +76,7 @@ env = HYPRCURSOR_SIZE,24
# Nvidia # https://wiki.hypr.land/Nvidia/#environment-variables
env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WEBKIT_DISABLE_DMABUF_RENDERER,1
###################
### PERMISSIONS ###
@@ -187,7 +191,7 @@ animations {
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this
preserve_split = false # You probably want this
}
# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
@@ -271,6 +275,8 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
bind = $mainMod, S, exec, $screenShot
bind = $mainMod, F, fullscreen
bind = , home, exec, $toggleSpeaker
bind = , end, exec, $toggleMic
@@ -321,7 +327,7 @@ windowrule = immediate, class:^(gamescope)$
windowrule = workspace 6 silent, class:^(steam)$
windowrule = workspace 8 silent, class:^(vesktop)$
windowrule = workspace 8 silent, class:^(org.telegram.desktop)$
windowrule = workspace 10 silent, class:^(com\.obsproject\.Studio)$
# Fix some dragging issues with XWayland
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0

View File

@@ -24,6 +24,7 @@ Singleton {
"gamescope": "󰺵",
"blender": "󰂫",
"Spotify": "",
"Unity": "",
"fallback": "󰏩"
})
}

View File

@@ -46,7 +46,7 @@ RowLayout {
Text {
id: icon
color: "white"
font.family: "HeavyData Nerd Font"
font.family: "NotoSans Nerd Font:style=Regular" // https://www.reddit.com/r/Polybar/comments/sh8krs/comment/hv3lykm/
font.pointSize: 13
// long-ass oneliner for "if there is no class icon, go to fallback"
text: (Common.Icons.appIcons[(modelData.lastIpcObject.class)] != undefined ) ? Common.Icons.appIcons[(modelData.lastIpcObject.class)] : Common.Icons.appIcons["fallback"]