media config

This commit is contained in:
Ivan Kirilov Dimitrov 2024-08-02 06:40:39 +02:00
parent 776e4cd49c
commit 588190e7b6
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294

View File

@ -273,137 +273,136 @@ toplevel@{ moduleWithSystem, ... }: {
}; };
}; };
systemd = { enable = true; target = "sway-session.target"; }; systemd = { enable = true; target = "sway-session.target"; };
style = /* CSS */ style = ''
'' @define-color rosewater #f5e0dc;
@define-color rosewater #f5e0dc; @define-color flamingo #f2cdcd;
@define-color flamingo #f2cdcd; @define-color pink #f5c2e7;
@define-color pink #f5c2e7; @define-color mauve #cba6f7;
@define-color mauve #cba6f7; @define-color red #f38ba8;
@define-color red #f38ba8; @define-color maroon #eba0ac;
@define-color maroon #eba0ac; @define-color peach #fab387;
@define-color peach #fab387; @define-color yellow #f9e2af;
@define-color yellow #f9e2af; @define-color green #a6e3a1;
@define-color green #a6e3a1; @define-color teal #94e2d5;
@define-color teal #94e2d5; @define-color sky #89dceb;
@define-color sky #89dceb; @define-color sapphire #74c7ec;
@define-color sapphire #74c7ec; @define-color blue #89b4fa;
@define-color blue #89b4fa; @define-color lavender #b4befe;
@define-color lavender #b4befe; @define-color text #cdd6f4;
@define-color text #cdd6f4; @define-color subtext1 #bac2de;
@define-color subtext1 #bac2de; @define-color subtext0 #a6adc8;
@define-color subtext0 #a6adc8; @define-color overlay2 #9399b2;
@define-color overlay2 #9399b2; @define-color overlay1 #7f849c;
@define-color overlay1 #7f849c; @define-color overlay0 #6c7086;
@define-color overlay0 #6c7086; @define-color surface2 #585b70;
@define-color surface2 #585b70; @define-color surface1 #45475a;
@define-color surface1 #45475a; @define-color surface0 #313244;
@define-color surface0 #313244; @define-color base #1e1e2e;
@define-color base #1e1e2e; @define-color mantle #181825;
@define-color mantle #181825; @define-color crust #11111b;
@define-color crust #11111b; * {
* { font-family: FontAwesome, 'Fira Code';
font-family: FontAwesome, 'Fira Code'; font-size: 13px;
font-size: 13px; }
}
window#waybar { window#waybar {
background-color: rgba(43, 48, 59, 0.1); background-color: rgba(43, 48, 59, 0.1);
border-bottom: 2px solid rgba(100, 114, 125, 0.5); border-bottom: 2px solid rgba(100, 114, 125, 0.5);
color: @rosewater; color: @rosewater;
} }
#workspaces button { #workspaces button {
padding: 0 5px; padding: 0 5px;
background-color: @base; background-color: @base;
color: @text; color: @text;
border-radius: 6px; border-radius: 6px;
} }
#workspaces button:hover { #workspaces button:hover {
background: @mantle; background: @mantle;
} }
#workspaces button.focused { #workspaces button.focused {
background-color: @crust; background-color: @crust;
box-shadow: inset 0 -2px @sky; box-shadow: inset 0 -2px @sky;
} }
#workspaces button.urgent { #workspaces button.urgent {
background-color: @red; background-color: @red;
} }
#clock, #clock,
#battery, #battery,
#cpu, #cpu,
#memory, #memory,
#disk, #disk,
#temperature, #temperature,
#backlight, #backlight,
#network, #network,
#pulseaudio, #pulseaudio,
#wireplumber, #wireplumber,
#custom-media, #custom-media,
#tray, #tray,
#mode, #mode,
#idle_inhibitor, #idle_inhibitor,
#scratchpad, #scratchpad,
#power-profiles-daemon, #power-profiles-daemon,
#mpd { #mpd {
padding: 0 10px; padding: 0 10px;
color: @text; color: @text;
background-color: @base; background-color: @base;
margin: 0 .5em; margin: 0 .5em;
border-radius: 9999px; border-radius: 9999px;
} }
#clock.week { #clock.week {
margin-right: 0px; margin-right: 0px;
color: @peach; color: @peach;
border-radius: 9999px 0px 0px 9999px; border-radius: 9999px 0px 0px 9999px;
} }
#clock.year { #clock.year {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
color: @pink; color: @pink;
border-radius: 0px; border-radius: 0px;
} }
#clock.time { #clock.time {
margin-left: 0px; margin-left: 0px;
color: @sky; color: @sky;
border-radius: 0px 9999px 9999px 0px; border-radius: 0px 9999px 9999px 0px;
} }
#battery.charging, #battery.plugged { #battery.charging, #battery.plugged {
color: @green; color: @green;
} }
#battery.discharging { #battery.discharging {
color: @yellow; color: @yellow;
} }
@keyframes blink { @keyframes blink {
to { to {
background-color: #ffffff; background-color: #ffffff;
color: #000000; color: #000000;
} }
} }
#battery.warning:not(.charging) { #battery.warning:not(.charging) {
background-color: @red; background-color: @red;
} }
/* Using steps() instead of linear as a timing function to limit cpu usage */ /* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
background-color: @red; background-color: @red;
animation-name: blink; animation-name: blink;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-timing-function: steps(12); animation-timing-function: steps(12);
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
'' ''
; ;
}; };
swaylock = { swaylock = {
@ -431,8 +430,8 @@ toplevel@{ moduleWithSystem, ... }: {
font = { package = pkgs.fira-code; name = "FiraCodeNFM-Reg"; }; font = { package = pkgs.fira-code; name = "FiraCodeNFM-Reg"; };
settings = { background_opacity = "0.90"; cursor_shape = "beam"; term = "screen-256color"; }; settings = { background_opacity = "0.90"; cursor_shape = "beam"; term = "screen-256color"; };
}; };
imv.enable = true; imv = { enable = true; settings = { options.fullscreen = true; }; };
mpv.enable = true; mpv = { enable = true; scripts = with pkgs.mpvScripts; [ uosc thumbfast ]; };
bash.profileExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway ''; bash.profileExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
zsh.loginExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway ''; zsh.loginExtra = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
nushell.loginFile.text = '' if (tty) == "/dev/tty1" { sway } ''; nushell.loginFile.text = '' if (tty) == "/dev/tty1" { sway } '';