blob: 9d9337ebab08c98160faef608a80decf53b55c68 [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 Turner840e57d2022-03-08 10:19:04 +000037 transition: background 0s;
Skyler Turnere77c6422022-03-07 21:43:01 +000038 }
39
Skyler Turner3cc09652022-03-07 21:45:32 +000040 window#waybar * * *:first-child * {
Skyler Turnere77c6422022-03-07 21:43:01 +000041 margin-left: 10px;
42 }
43
Skyler Turner3cc09652022-03-07 21:45:32 +000044 window#waybar * * *:last-child * {
Skyler Turnere77c6422022-03-07 21:43:01 +000045 margin-right: 10px;
Skyler Turner0ac86a22022-03-07 20:58:14 +000046 }
Skyler Turner6cfeaa22022-03-07 21:35:22 +000047
Skyler Turner3cc09652022-03-07 21:45:32 +000048 window#waybar * * * * * {
Skyler Turner6cfeaa22022-03-07 21:35:22 +000049 margin: 0;
Skyler Turnerb6746eb2022-03-07 21:53:50 +000050 background: rgba(0, 0, 0, 0);
Skyler Turner6cfeaa22022-03-07 21:35:22 +000051 }
Skyler Turner217df842022-03-07 22:43:42 +000052
Skyler Turner820f7292022-03-08 10:13:26 +000053 window#waybar.solo,window#waybar.empty {
54 background: alpha(@theme_base_color, 0.6);
55 }
56
57 window#waybar.solo *,window#waybar.empty * {
Skyler Turnerc1c9e8e2022-03-08 10:20:43 +000058 background: rgba(0, 0, 0, 0);
Skyler Turner820f7292022-03-08 10:13:26 +000059 }
Skyler Turnerde058762022-03-08 19:05:37 +000060
Skyler Turner044ffc02022-03-07 22:44:10 +000061 #window {
Skyler Turner02e5d9f2022-03-07 22:45:08 +000062 min-width: 50em;
Skyler Turner217df842022-03-07 22:43:42 +000063 }
Skyler Turnercce7ab22022-03-07 22:55:35 +000064
Skyler Turnerde058762022-03-08 19:05:37 +000065 window#waybar * * * #tray menu {
Skyler Turner5551e9e2022-03-07 22:56:29 +000066 background: alpha(@theme_base_color, 0.8);
Skyler Turnercce7ab22022-03-07 22:55:35 +000067 color: @theme_text_color;
Skyler Turner5551e9e2022-03-07 22:56:29 +000068 border: 0;
Skyler Turnercce7ab22022-03-07 22:55:35 +000069 }
Skyler Turnercb5d3b72022-03-07 23:00:23 +000070
Skyler Turner191289d2022-03-07 23:07:24 +000071 #tray menu *:hover {
72 background: alpha(@theme_base_color, 1);
73 }
74
Skyler Turner68ecd912022-03-08 19:08:27 +000075 window#waybar #workspaces {
Skyler Turnerde951712022-03-08 19:10:36 +000076 padding: 0;
Skyler Turner68ecd912022-03-08 19:08:27 +000077 }
78
79 window#waybar #workspaces button {
Skyler Turnera8706222022-03-07 23:04:27 +000080 border: 0;
Skyler Turnerde951712022-03-08 19:10:36 +000081 margin: 0;
Skyler Turnera8706222022-03-07 23:04:27 +000082 }
83
Skyler Turner820f7292022-03-08 10:13:26 +000084 window#waybar #workspaces button.focused {
Skyler Turnercb5d3b72022-03-07 23:00:23 +000085 background: alpha(@theme_base_color, 0.8);
86 }
87
Skyler Turner820f7292022-03-08 10:13:26 +000088 window#waybar #workspaces button.focused:hover {
Skyler Turnercb5d3b72022-03-07 23:00:23 +000089 background: alpha(@theme_base_color, 0.9);
90 }
91
Skyler Turner820f7292022-03-08 10:13:26 +000092 window#waybar #workspaces button:hover {
Skyler Turnercb5d3b72022-03-07 23:00:23 +000093 background: alpha(@theme_base_color, 0.7);
94 }
95
Skyler Turner820f7292022-03-08 10:13:26 +000096 window#waybar #workspaces button.persistent {
Skyler Turner3d9977b2022-03-07 23:23:14 +000097 background: alpha(#ffdf00, 0.5);
Skyler Turnercb5d3b72022-03-07 23:00:23 +000098 }
99
Skyler Turner820f7292022-03-08 10:13:26 +0000100 window#waybar #workspaces button.urgent {
Skyler Turnerdb6c27c2022-03-07 23:02:44 +0000101 background: alpha(red, 0.5);
Skyler Turnercb5d3b72022-03-07 23:00:23 +0000102 }
103
Skyler Turner820f7292022-03-08 10:13:26 +0000104 window#waybar #workspaces button:active {
Skyler Turner88b378d2022-03-07 23:05:09 +0000105 background: alpha(@theme_base_color, 1);
106 }
107
Skyler Turner6d130c22022-03-08 19:25:49 +0000108 #backlight, #pulseaudio, #network, #battery {
Skyler Turner3ad33312022-03-08 19:27:05 +0000109 min-width: 3em;
Skyler Turner6d130c22022-03-08 19:25:49 +0000110 }
Skyler Turner0ac86a22022-03-07 20:58:14 +0000111 '';
Skyler Turner7b93a372022-03-06 23:29:07 +0000112
113 systemd = {
114 enable = true;
Skyler Turner99c87b02022-03-06 23:30:23 +0000115 # target = "sway-session.target";
Skyler Turner7b93a372022-03-06 23:29:07 +0000116 };
117 };
Skyler Turner650440c2022-03-07 00:20:56 +0000118
Skyler Turner741201f2022-03-07 00:30:50 +0000119 systemd.user.targets.sway.Unit.Wants = [ "waybar.service" ];
Skyler Turnerdb486c92022-03-06 10:48:24 +0000120}