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