blob: e17098b2139306123ce21d60c1ac8c5e89281346 [file] [log] [blame]
Skyler Turnerdb486c92022-03-06 10:48:24 +00001{ ... }: {
Skyler Turner7b93a372022-03-06 23:29:07 +00002 programs.waybar = {
3 enable = true;
Skyler Turner730f6422022-03-07 22:33:35 +00004 settings = [
5 {
Skyler Turner40e320f2022-03-07 22:50:39 +00006 modules-left = ["sway/workspaces"];
Skyler Turnera8cc07a2022-03-07 22:09:09 +00007
Skyler Turner730f6422022-03-07 22:33:35 +00008 modules-center = ["sway/window"];
Skyler Turnera8cc07a2022-03-07 22:09:09 +00009
Skyler Turner39884762022-03-07 22:54:38 +000010 modules-right = ["backlight" "pulseaudio" "network" "battery" "clock" "tray"];
Skyler Turnerf24e20c2022-03-07 22:34:57 +000011
12 modules = {
13 battery.bat = "BAT0";
Skyler Turner217df842022-03-07 22:43:42 +000014 "sway/window" = {
15 max-length = 50;
16 };
Skyler Turnerf8edcb52022-03-07 22:52:47 +000017 clock = {
18 format = "{:%T}";
19 interval = 1;
20 };
Skyler Turnerf24e20c2022-03-07 22:34:57 +000021 };
Skyler Turner730f6422022-03-07 22:33:35 +000022 }
23 ];
Skyler Turner0ac86a22022-03-07 20:58:14 +000024 style = ''
25 window#waybar {
Skyler Turnerc61c9302022-03-07 21:21:03 +000026 background: rgba(0, 0, 0, 0);
Skyler Turnereedfa632022-03-07 21:26:05 +000027 }
28
Skyler Turner3cc09652022-03-07 21:45:32 +000029 window#waybar * * * * {
Skyler Turner500e68c2022-03-07 21:55:00 +000030 background: alpha(@theme_base_color, 0.6);
Skyler Turnereedfa632022-03-07 21:26:05 +000031 color: @theme_text_color;
Skyler Turnerfd265092022-03-07 21:31:38 +000032 padding-left: 10px;
33 padding-right: 10px;
Skyler Turner58712ec2022-03-07 21:30:52 +000034 border-radius: 5px;
Skyler Turnerf3672492022-03-07 22:36:10 +000035 margin: 10px 5px;
Skyler Turner8e615b72022-03-07 23:03:24 +000036 transition: all 0.2s ease-in-out;
Skyler Turnere77c6422022-03-07 21:43:01 +000037 }
38
Skyler Turner3cc09652022-03-07 21:45:32 +000039 window#waybar * * *:first-child * {
Skyler Turnere77c6422022-03-07 21:43:01 +000040 margin-left: 10px;
41 }
42
Skyler Turner3cc09652022-03-07 21:45:32 +000043 window#waybar * * *:last-child * {
Skyler Turnere77c6422022-03-07 21:43:01 +000044 margin-right: 10px;
Skyler Turner0ac86a22022-03-07 20:58:14 +000045 }
Skyler Turner6cfeaa22022-03-07 21:35:22 +000046
Skyler Turner3cc09652022-03-07 21:45:32 +000047 window#waybar * * * * * {
Skyler Turner6cfeaa22022-03-07 21:35:22 +000048 margin: 0;
Skyler Turnerb6746eb2022-03-07 21:53:50 +000049 background: rgba(0, 0, 0, 0);
Skyler Turner6cfeaa22022-03-07 21:35:22 +000050 }
Skyler Turner217df842022-03-07 22:43:42 +000051
Skyler Turner044ffc02022-03-07 22:44:10 +000052 #window {
Skyler Turner02e5d9f2022-03-07 22:45:08 +000053 min-width: 50em;
Skyler Turner217df842022-03-07 22:43:42 +000054 }
Skyler Turnercce7ab22022-03-07 22:55:35 +000055
56 #tray menu {
Skyler Turner5551e9e2022-03-07 22:56:29 +000057 background: alpha(@theme_base_color, 0.8);
Skyler Turnercce7ab22022-03-07 22:55:35 +000058 color: @theme_text_color;
Skyler Turner5551e9e2022-03-07 22:56:29 +000059 border: 0;
Skyler Turnercce7ab22022-03-07 22:55:35 +000060 }
Skyler Turnercb5d3b72022-03-07 23:00:23 +000061
Skyler Turnera8706222022-03-07 23:04:27 +000062 #workspaces button {
63 border: 0;
64 }
65
Skyler Turnercb5d3b72022-03-07 23:00:23 +000066 #workspaces button.focused {
67 background: alpha(@theme_base_color, 0.8);
68 }
69
70 #workspaces button.focused:hover {
71 background: alpha(@theme_base_color, 0.9);
72 }
73
74 #workspaces button:hover {
75 background: alpha(@theme_base_color, 0.7);
76 }
77
78 #workspaces button.persistent {
Skyler Turnerdb6c27c2022-03-07 23:02:44 +000079 background: alpha(yellow, 0.5);
Skyler Turnercb5d3b72022-03-07 23:00:23 +000080 }
81
82 #workspaces button.urgent {
Skyler Turnerdb6c27c2022-03-07 23:02:44 +000083 background: alpha(red, 0.5);
Skyler Turnercb5d3b72022-03-07 23:00:23 +000084 }
85
Skyler Turner0ac86a22022-03-07 20:58:14 +000086 '';
Skyler Turner7b93a372022-03-06 23:29:07 +000087
88 systemd = {
89 enable = true;
Skyler Turner99c87b02022-03-06 23:30:23 +000090 # target = "sway-session.target";
Skyler Turner7b93a372022-03-06 23:29:07 +000091 };
92 };
Skyler Turner650440c2022-03-07 00:20:56 +000093
Skyler Turner741201f2022-03-07 00:30:50 +000094 systemd.user.targets.sway.Unit.Wants = [ "waybar.service" ];
Skyler Turnerdb486c92022-03-06 10:48:24 +000095}