-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4ce7b4
commit 665f3a6
Showing
5 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ config, lib, ... }: | ||
let | ||
cfg = config.dotfiles.waybar; | ||
in | ||
{ | ||
options.dotfiles.waybar = { | ||
enable = lib.mkEnableOption "Waybar"; | ||
}; | ||
|
||
config = lib.mkIf cfg.enable { | ||
programs.waybar = { | ||
enable = true; | ||
settings = { | ||
mainBar = { | ||
layer = "top"; | ||
position = "top"; | ||
mod = "dock"; | ||
exclusive = true; | ||
passthrough = false; | ||
gtk-layer-shell = true; | ||
height = 0; | ||
modules-left = [ | ||
"sway/workspaces" | ||
"sway/mode" | ||
]; | ||
modules-center = [ "clock" ]; | ||
modules-right = [ | ||
"pulseaudio" | ||
"network" | ||
"tray" | ||
]; | ||
clock = { | ||
format = "{:%b %d - %H:%M}"; | ||
tooltip = false; | ||
}; | ||
"sway/mode" = { | ||
tooltip = false; | ||
}; | ||
"sway/workspaces" = { | ||
disable-click = true; | ||
disable-scroll = true; | ||
disable-markup = true; | ||
}; | ||
pulseaudio = { | ||
format = "<span color='#cba6f7'>{icon}</span>{volume}%"; | ||
tooltip = false; | ||
format-muted = "<span color='#f38ba8'> </span>Muted"; | ||
format-icons = { | ||
default = [ | ||
" " | ||
" " | ||
" " | ||
]; | ||
}; | ||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; | ||
scroll-step = 5; | ||
}; | ||
network = { | ||
tooltip = false; | ||
}; | ||
}; | ||
}; | ||
style = ./style.css; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
* { | ||
border: none; | ||
border-radius: 0; | ||
font-family: "JetBrainsMono NF"; | ||
font-size: 12.5px; | ||
font-weight: bold; | ||
} | ||
|
||
window#waybar { | ||
background-color: #222831; | ||
color: #eeeeee; | ||
} | ||
|
||
#workspaces button { | ||
padding: 0 4px; | ||
color: #eeeeee; | ||
} | ||
|
||
#workspaces button.focused { | ||
color: #5c8374; | ||
} | ||
|
||
#workspaces button.urgent { | ||
color: #ce5a67; | ||
} | ||
|
||
#workspaces button.persistent { | ||
color: #5272f2; | ||
} | ||
|
||
#workspaces button:hover { | ||
background: #222831; | ||
} | ||
|
||
#pulseaudio, | ||
#clock, | ||
#workspaces, | ||
#tray, | ||
#mode, | ||
#network, | ||
#cpu { | ||
background: #222831; | ||
color: #eeeeee; | ||
margin: 2px 3px; | ||
padding: 0 10px; | ||
border-radius: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters