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 | 730f642 | 2022-03-07 22:33:35 +0000 | [diff] [blame] | 4 | settings = [ |
| 5 | { |
Skyler Turner | 40e320f | 2022-03-07 22:50:39 +0000 | [diff] [blame] | 6 | modules-left = ["sway/workspaces"]; |
Skyler Turner | a8cc07a | 2022-03-07 22:09:09 +0000 | [diff] [blame] | 7 | |
Skyler Turner | 730f642 | 2022-03-07 22:33:35 +0000 | [diff] [blame] | 8 | modules-center = ["sway/window"]; |
Skyler Turner | a8cc07a | 2022-03-07 22:09:09 +0000 | [diff] [blame] | 9 | |
Skyler Turner | 3988476 | 2022-03-07 22:54:38 +0000 | [diff] [blame] | 10 | modules-right = ["backlight" "pulseaudio" "network" "battery" "clock" "tray"]; |
Skyler Turner | f24e20c | 2022-03-07 22:34:57 +0000 | [diff] [blame] | 11 | |
| 12 | modules = { |
| 13 | battery.bat = "BAT0"; |
Skyler Turner | 217df84 | 2022-03-07 22:43:42 +0000 | [diff] [blame] | 14 | "sway/window" = { |
| 15 | max-length = 50; |
| 16 | }; |
Skyler Turner | f8edcb5 | 2022-03-07 22:52:47 +0000 | [diff] [blame] | 17 | clock = { |
| 18 | format = "{:%T}"; |
| 19 | interval = 1; |
| 20 | }; |
Skyler Turner | f24e20c | 2022-03-07 22:34:57 +0000 | [diff] [blame] | 21 | }; |
Skyler Turner | 730f642 | 2022-03-07 22:33:35 +0000 | [diff] [blame] | 22 | } |
| 23 | ]; |
Skyler Turner | 0ac86a2 | 2022-03-07 20:58:14 +0000 | [diff] [blame] | 24 | style = '' |
| 25 | window#waybar { |
Skyler Turner | c61c930 | 2022-03-07 21:21:03 +0000 | [diff] [blame] | 26 | background: rgba(0, 0, 0, 0); |
Skyler Turner | eedfa63 | 2022-03-07 21:26:05 +0000 | [diff] [blame] | 27 | } |
| 28 | |
Skyler Turner | 3cc0965 | 2022-03-07 21:45:32 +0000 | [diff] [blame] | 29 | window#waybar * * * * { |
Skyler Turner | 500e68c | 2022-03-07 21:55:00 +0000 | [diff] [blame] | 30 | background: alpha(@theme_base_color, 0.6); |
Skyler Turner | eedfa63 | 2022-03-07 21:26:05 +0000 | [diff] [blame] | 31 | color: @theme_text_color; |
Skyler Turner | fd26509 | 2022-03-07 21:31:38 +0000 | [diff] [blame] | 32 | padding-left: 10px; |
| 33 | padding-right: 10px; |
Skyler Turner | 58712ec | 2022-03-07 21:30:52 +0000 | [diff] [blame] | 34 | border-radius: 5px; |
Skyler Turner | f367249 | 2022-03-07 22:36:10 +0000 | [diff] [blame] | 35 | margin: 10px 5px; |
Skyler Turner | 8e615b7 | 2022-03-07 23:03:24 +0000 | [diff] [blame] | 36 | transition: all 0.2s ease-in-out; |
Skyler Turner | 840e57d | 2022-03-08 10:19:04 +0000 | [diff] [blame] | 37 | transition: background 0s; |
Skyler Turner | e77c642 | 2022-03-07 21:43:01 +0000 | [diff] [blame] | 38 | } |
| 39 | |
Skyler Turner | 3cc0965 | 2022-03-07 21:45:32 +0000 | [diff] [blame] | 40 | window#waybar * * *:first-child * { |
Skyler Turner | e77c642 | 2022-03-07 21:43:01 +0000 | [diff] [blame] | 41 | margin-left: 10px; |
| 42 | } |
| 43 | |
Skyler Turner | 3cc0965 | 2022-03-07 21:45:32 +0000 | [diff] [blame] | 44 | window#waybar * * *:last-child * { |
Skyler Turner | e77c642 | 2022-03-07 21:43:01 +0000 | [diff] [blame] | 45 | margin-right: 10px; |
Skyler Turner | 0ac86a2 | 2022-03-07 20:58:14 +0000 | [diff] [blame] | 46 | } |
Skyler Turner | 6cfeaa2 | 2022-03-07 21:35:22 +0000 | [diff] [blame] | 47 | |
Skyler Turner | 3cc0965 | 2022-03-07 21:45:32 +0000 | [diff] [blame] | 48 | window#waybar * * * * * { |
Skyler Turner | 6cfeaa2 | 2022-03-07 21:35:22 +0000 | [diff] [blame] | 49 | margin: 0; |
Skyler Turner | b6746eb | 2022-03-07 21:53:50 +0000 | [diff] [blame] | 50 | background: rgba(0, 0, 0, 0); |
Skyler Turner | 6cfeaa2 | 2022-03-07 21:35:22 +0000 | [diff] [blame] | 51 | } |
Skyler Turner | 217df84 | 2022-03-07 22:43:42 +0000 | [diff] [blame] | 52 | |
Skyler Turner | 820f729 | 2022-03-08 10:13:26 +0000 | [diff] [blame] | 53 | window#waybar.solo,window#waybar.empty { |
| 54 | background: alpha(@theme_base_color, 0.6); |
| 55 | } |
| 56 | |
| 57 | window#waybar.solo *,window#waybar.empty * { |
Skyler Turner | c1c9e8e | 2022-03-08 10:20:43 +0000 | [diff] [blame] | 58 | background: rgba(0, 0, 0, 0); |
Skyler Turner | 820f729 | 2022-03-08 10:13:26 +0000 | [diff] [blame] | 59 | } |
Skyler Turner | de05876 | 2022-03-08 19:05:37 +0000 | [diff] [blame] | 60 | |
Skyler Turner | 044ffc0 | 2022-03-07 22:44:10 +0000 | [diff] [blame] | 61 | #window { |
Skyler Turner | 02e5d9f | 2022-03-07 22:45:08 +0000 | [diff] [blame] | 62 | min-width: 50em; |
Skyler Turner | 217df84 | 2022-03-07 22:43:42 +0000 | [diff] [blame] | 63 | } |
Skyler Turner | cce7ab2 | 2022-03-07 22:55:35 +0000 | [diff] [blame] | 64 | |
Skyler Turner | de05876 | 2022-03-08 19:05:37 +0000 | [diff] [blame] | 65 | window#waybar * * * #tray menu { |
Skyler Turner | 5551e9e | 2022-03-07 22:56:29 +0000 | [diff] [blame] | 66 | background: alpha(@theme_base_color, 0.8); |
Skyler Turner | cce7ab2 | 2022-03-07 22:55:35 +0000 | [diff] [blame] | 67 | color: @theme_text_color; |
Skyler Turner | 5551e9e | 2022-03-07 22:56:29 +0000 | [diff] [blame] | 68 | border: 0; |
Skyler Turner | cce7ab2 | 2022-03-07 22:55:35 +0000 | [diff] [blame] | 69 | } |
Skyler Turner | cb5d3b7 | 2022-03-07 23:00:23 +0000 | [diff] [blame] | 70 | |
Skyler Turner | 191289d | 2022-03-07 23:07:24 +0000 | [diff] [blame] | 71 | #tray menu *:hover { |
| 72 | background: alpha(@theme_base_color, 1); |
| 73 | } |
| 74 | |
Skyler Turner | 68ecd91 | 2022-03-08 19:08:27 +0000 | [diff] [blame] | 75 | window#waybar #workspaces { |
Skyler Turner | de95171 | 2022-03-08 19:10:36 +0000 | [diff] [blame] | 76 | padding: 0; |
Skyler Turner | 68ecd91 | 2022-03-08 19:08:27 +0000 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | window#waybar #workspaces button { |
Skyler Turner | a870622 | 2022-03-07 23:04:27 +0000 | [diff] [blame] | 80 | border: 0; |
Skyler Turner | de95171 | 2022-03-08 19:10:36 +0000 | [diff] [blame] | 81 | margin: 0; |
Skyler Turner | a870622 | 2022-03-07 23:04:27 +0000 | [diff] [blame] | 82 | } |
| 83 | |
Skyler Turner | 820f729 | 2022-03-08 10:13:26 +0000 | [diff] [blame] | 84 | window#waybar #workspaces button.focused { |
Skyler Turner | cb5d3b7 | 2022-03-07 23:00:23 +0000 | [diff] [blame] | 85 | background: alpha(@theme_base_color, 0.8); |
| 86 | } |
| 87 | |
Skyler Turner | 820f729 | 2022-03-08 10:13:26 +0000 | [diff] [blame] | 88 | window#waybar #workspaces button.focused:hover { |
Skyler Turner | cb5d3b7 | 2022-03-07 23:00:23 +0000 | [diff] [blame] | 89 | background: alpha(@theme_base_color, 0.9); |
| 90 | } |
| 91 | |
Skyler Turner | 820f729 | 2022-03-08 10:13:26 +0000 | [diff] [blame] | 92 | window#waybar #workspaces button:hover { |
Skyler Turner | cb5d3b7 | 2022-03-07 23:00:23 +0000 | [diff] [blame] | 93 | background: alpha(@theme_base_color, 0.7); |
| 94 | } |
| 95 | |
Skyler Turner | 820f729 | 2022-03-08 10:13:26 +0000 | [diff] [blame] | 96 | window#waybar #workspaces button.persistent { |
Skyler Turner | 3d9977b | 2022-03-07 23:23:14 +0000 | [diff] [blame] | 97 | background: alpha(#ffdf00, 0.5); |
Skyler Turner | cb5d3b7 | 2022-03-07 23:00:23 +0000 | [diff] [blame] | 98 | } |
| 99 | |
Skyler Turner | 820f729 | 2022-03-08 10:13:26 +0000 | [diff] [blame] | 100 | window#waybar #workspaces button.urgent { |
Skyler Turner | db6c27c | 2022-03-07 23:02:44 +0000 | [diff] [blame] | 101 | background: alpha(red, 0.5); |
Skyler Turner | cb5d3b7 | 2022-03-07 23:00:23 +0000 | [diff] [blame] | 102 | } |
| 103 | |
Skyler Turner | 820f729 | 2022-03-08 10:13:26 +0000 | [diff] [blame] | 104 | window#waybar #workspaces button:active { |
Skyler Turner | 88b378d | 2022-03-07 23:05:09 +0000 | [diff] [blame] | 105 | background: alpha(@theme_base_color, 1); |
| 106 | } |
| 107 | |
Skyler Turner | 6d130c2 | 2022-03-08 19:25:49 +0000 | [diff] [blame] | 108 | #backlight, #pulseaudio, #network, #battery { |
Skyler Turner | 3ad3331 | 2022-03-08 19:27:05 +0000 | [diff] [blame^] | 109 | min-width: 3em; |
Skyler Turner | 6d130c2 | 2022-03-08 19:25:49 +0000 | [diff] [blame] | 110 | } |
Skyler Turner | 0ac86a2 | 2022-03-07 20:58:14 +0000 | [diff] [blame] | 111 | ''; |
Skyler Turner | 7b93a37 | 2022-03-06 23:29:07 +0000 | [diff] [blame] | 112 | |
| 113 | systemd = { |
| 114 | enable = true; |
Skyler Turner | 99c87b0 | 2022-03-06 23:30:23 +0000 | [diff] [blame] | 115 | # target = "sway-session.target"; |
Skyler Turner | 7b93a37 | 2022-03-06 23:29:07 +0000 | [diff] [blame] | 116 | }; |
| 117 | }; |
Skyler Turner | 650440c | 2022-03-07 00:20:56 +0000 | [diff] [blame] | 118 | |
Skyler Turner | 741201f | 2022-03-07 00:30:50 +0000 | [diff] [blame] | 119 | systemd.user.targets.sway.Unit.Wants = [ "waybar.service" ]; |
Skyler Turner | db486c9 | 2022-03-06 10:48:24 +0000 | [diff] [blame] | 120 | } |