taffybar: tune SNI tray display
This commit is contained in:
@@ -4,14 +4,14 @@ module TaffybarConfig.Config
|
||||
where
|
||||
|
||||
import TaffybarConfig.Host (compactBarHosts, smallBarHosts)
|
||||
import TaffybarConfig.Widgets (clockWidget, endWidgetsForHost, startWidgetsForBackend)
|
||||
import TaffybarConfig.Widgets (clockWidget, endWidgetsForHost, startWidgetsForHostAndBackend)
|
||||
import System.Taffybar.Context (Backend)
|
||||
import System.Taffybar.SimpleConfig
|
||||
|
||||
mkSimpleTaffyConfig :: String -> Backend -> [FilePath] -> SimpleTaffyConfig
|
||||
mkSimpleTaffyConfig hostName backend cssFiles =
|
||||
defaultSimpleTaffyConfig
|
||||
{ startWidgets = startWidgetsForBackend backend,
|
||||
{ startWidgets = startWidgetsForHostAndBackend hostName backend,
|
||||
centerWidgets = [clockWidget],
|
||||
endWidgets = endWidgetsForHost hostName,
|
||||
barLevels = Nothing,
|
||||
|
||||
@@ -5,6 +5,7 @@ module TaffybarConfig.Widgets
|
||||
( clockWidget,
|
||||
endWidgetsForHost,
|
||||
startWidgetsForBackend,
|
||||
startWidgetsForHostAndBackend,
|
||||
)
|
||||
where
|
||||
|
||||
@@ -422,9 +423,12 @@ sniTrayWidget = do
|
||||
startWidgetsForBackend :: Backend -> [TaffyIO Gtk.Widget]
|
||||
startWidgetsForBackend backend =
|
||||
case backend of
|
||||
BackendX11 -> [omniMenuWidget, workspacesWidget, layoutWidget, windowsWidget]
|
||||
BackendX11 -> [omniMenuWidget, workspacesWidget, layoutWidget]
|
||||
-- These Wayland widgets are Hyprland-specific.
|
||||
BackendWayland -> [omniMenuWidget, workspacesWidget, windowsWidget]
|
||||
BackendWayland -> [omniMenuWidget, workspacesWidget]
|
||||
|
||||
startWidgetsForHostAndBackend :: String -> Backend -> [TaffyIO Gtk.Widget]
|
||||
startWidgetsForHostAndBackend _hostName = startWidgetsForBackend
|
||||
|
||||
endWidgetsForHost :: String -> [TaffyIO Gtk.Widget]
|
||||
endWidgetsForHost hostName =
|
||||
|
||||
@@ -3,18 +3,20 @@ max_visible_icons: 0
|
||||
priorities:
|
||||
- key: item-id:nm-applet
|
||||
priority: 3
|
||||
- key: icon-name:gitea
|
||||
priority: 2
|
||||
- key: icon-name:github
|
||||
priority: 2
|
||||
- key: icon-name:gitea
|
||||
priority: 1
|
||||
- key: icon-name:gmail
|
||||
priority: 2
|
||||
- key: icon-name:password
|
||||
priority: 1
|
||||
- key: icon-name:text-org
|
||||
priority: 1
|
||||
- key: item-id:git-sync-rs
|
||||
priority: 1
|
||||
- key: process:slack
|
||||
priority: 1
|
||||
- key: icon-name:blueman-tray
|
||||
priority: 0
|
||||
- key: icon-name:kdeconnectindicatordark
|
||||
priority: 0
|
||||
- key: item-id:flameshot
|
||||
@@ -23,8 +25,12 @@ priorities:
|
||||
priority: 0
|
||||
- key: item-id:udiskie
|
||||
priority: 0
|
||||
- key: icon-name::1.89
|
||||
priority: -1
|
||||
- key: icon-name:audio-volume-low
|
||||
priority: -1
|
||||
- key: icon-name:blueman-tray
|
||||
priority: -1
|
||||
- key: item-id:blueman
|
||||
priority: -1
|
||||
- key: item-id:chrome_status_icon_1
|
||||
|
||||
4
nixos/flake.lock
generated
4
nixos/flake.lock
generated
@@ -1934,8 +1934,8 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1778137135,
|
||||
"narHash": "sha256-Z6QaP5ZvRhIxOygu/Oy7gje6mKAF/GR2tDU56X504UY=",
|
||||
"lastModified": 1778195259,
|
||||
"narHash": "sha256-exYzNU6vVQg3z1v8ZNDLMjV8+GxbubiEqndT8rFzrm0=",
|
||||
"path": "/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar",
|
||||
"type": "path"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user