Skyler Turner | db486c9 | 2022-03-06 10:48:24 +0000 | [diff] [blame] | 1 | { ... }: { |
Skyler Turner | 7b93a37 | 2022-03-06 23:29:07 +0000 | [diff] [blame] | 2 | programs.waybar = { |
3 | enable = true; | ||||
Skyler Turner | a8cc07a | 2022-03-07 22:09:09 +0000 | [diff] [blame^] | 4 | settings = { |
5 | modules-left = ["sway/mode" "sway/workspaces"]; | ||||
6 | |||||
7 | modules-center = ["sway/window"]; | ||||
8 | |||||
9 | modules-right = ["battery" "clock"]; | ||||
10 | battery.bat = "BAT0"; | ||||
11 | }; | ||||
Skyler Turner | 0ac86a2 | 2022-03-07 20:58:14 +0000 | [diff] [blame] | 12 | style = '' |
13 | window#waybar { | ||||
Skyler Turner | c61c930 | 2022-03-07 21:21:03 +0000 | [diff] [blame] | 14 | background: rgba(0, 0, 0, 0); |
Skyler Turner | eedfa63 | 2022-03-07 21:26:05 +0000 | [diff] [blame] | 15 | } |
16 | |||||
Skyler Turner | 3cc0965 | 2022-03-07 21:45:32 +0000 | [diff] [blame] | 17 | window#waybar * * * * { |
Skyler Turner | 500e68c | 2022-03-07 21:55:00 +0000 | [diff] [blame] | 18 | background: alpha(@theme_base_color, 0.6); |
Skyler Turner | eedfa63 | 2022-03-07 21:26:05 +0000 | [diff] [blame] | 19 | color: @theme_text_color; |
Skyler Turner | fd26509 | 2022-03-07 21:31:38 +0000 | [diff] [blame] | 20 | padding-left: 10px; |
21 | padding-right: 10px; | ||||
Skyler Turner | 58712ec | 2022-03-07 21:30:52 +0000 | [diff] [blame] | 22 | border-radius: 5px; |
Skyler Turner | 80724b2 | 2022-03-07 21:44:04 +0000 | [diff] [blame] | 23 | margin: 10px 0; |
Skyler Turner | e77c642 | 2022-03-07 21:43:01 +0000 | [diff] [blame] | 24 | } |
25 | |||||
Skyler Turner | 3cc0965 | 2022-03-07 21:45:32 +0000 | [diff] [blame] | 26 | window#waybar * * *:first-child * { |
Skyler Turner | e77c642 | 2022-03-07 21:43:01 +0000 | [diff] [blame] | 27 | margin-left: 10px; |
28 | } | ||||
29 | |||||
Skyler Turner | 3cc0965 | 2022-03-07 21:45:32 +0000 | [diff] [blame] | 30 | window#waybar * * *:last-child * { |
Skyler Turner | e77c642 | 2022-03-07 21:43:01 +0000 | [diff] [blame] | 31 | margin-right: 10px; |
Skyler Turner | 0ac86a2 | 2022-03-07 20:58:14 +0000 | [diff] [blame] | 32 | } |
Skyler Turner | 6cfeaa2 | 2022-03-07 21:35:22 +0000 | [diff] [blame] | 33 | |
Skyler Turner | 3cc0965 | 2022-03-07 21:45:32 +0000 | [diff] [blame] | 34 | window#waybar * * * * * { |
Skyler Turner | 6cfeaa2 | 2022-03-07 21:35:22 +0000 | [diff] [blame] | 35 | margin: 0; |
Skyler Turner | b6746eb | 2022-03-07 21:53:50 +0000 | [diff] [blame] | 36 | background: rgba(0, 0, 0, 0); |
Skyler Turner | 6cfeaa2 | 2022-03-07 21:35:22 +0000 | [diff] [blame] | 37 | } |
Skyler Turner | 0ac86a2 | 2022-03-07 20:58:14 +0000 | [diff] [blame] | 38 | ''; |
Skyler Turner | 7b93a37 | 2022-03-06 23:29:07 +0000 | [diff] [blame] | 39 | |
40 | systemd = { | ||||
41 | enable = true; | ||||
Skyler Turner | 99c87b0 | 2022-03-06 23:30:23 +0000 | [diff] [blame] | 42 | # target = "sway-session.target"; |
Skyler Turner | 7b93a37 | 2022-03-06 23:29:07 +0000 | [diff] [blame] | 43 | }; |
44 | }; | ||||
Skyler Turner | 650440c | 2022-03-07 00:20:56 +0000 | [diff] [blame] | 45 | |
Skyler Turner | 741201f | 2022-03-07 00:30:50 +0000 | [diff] [blame] | 46 | systemd.user.targets.sway.Unit.Wants = [ "waybar.service" ]; |
Skyler Turner | db486c9 | 2022-03-06 10:48:24 +0000 | [diff] [blame] | 47 | } |