This commit is contained in:
Andrea Ciceri 2022-11-25 14:12:27 +01:00
parent df63ea2968
commit a1d45d7303
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
21 changed files with 202 additions and 142 deletions

View file

@ -29,7 +29,7 @@
};
};
# TODO check if work (just wait?)
# TODO check if it works (just wait?)
services.swayidle.enable = true;
wayland = {
@ -62,7 +62,6 @@
"1" = [{title = ".*Mozilla Firefox$";} {title = ".*qutebrowser$";}];
"2" = [{title = "^((?!qutebrowser-editor).)*Emacs$";}];
"3" = [{title = "Slack.*";}];
"8" = [{title = "^Franz$";}];
"9" = [{title = "^Element.*";}];
};
floating.criteria = [
@ -89,12 +88,16 @@
${pkgs.wf-recorder}/bin/wf-recorder -g "$coords" -f "$filename"
wl-copy -t video/mp4 < $filename
'';
emacsclientAsTerminal = pkgs.writeShellScript "emacsclientAsTerminal" ''
emacsclient -c -F '\\'(name . "VTerm"))' -q --eval '\\'(vterm "/bin/zsh")'
'';
in
lib.mkOptionDefault {
"${modifier}+x" = "exec emacsclient -c";
"${modifier}+b" = "exec qutebrowser";
"${modifier}+s" = "exec ${screenshotScript}";
"${modifier}+g" = "exec ${screenrecordingScript}";
# "${modifier}+Shift+Enter" = "exec ${emacsclientAsTerminal}"; # FIXME
"XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s +5%";
"XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s 5%-";
};

View file

@ -1,67 +1,39 @@
* {
border: none;
font-family: "Fira Code, Symbols Nerd Font";
font-weight: normal;
font-size: 9pt;
min-height: 0;
border: none;
border-radius: 0;
min-height: 0;
}
window#waybar {
background-color: rgba(43, 48, 59, 0.5);
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
}
window .modules-right :not(image) { /* :not(image) excluded tray icon */
margin: 0 1rem;
}
window#waybar.hidden {
opacity: 0.2;
background: @theme_bg_color;
color: @theme_fg_color;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#workspaces button label {
font-size: 25px;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
}
#workspaces button.current_output {
border-bottom: 3px solid #64727D;
padding: 0 10px;
/* background: transparent; */
/* color: @theme_fg_color; */
}
#workspaces button.focused {
background-color: #64727D;
}
#workspaces button.focused.current_output {
border-bottom: 3px solid #ffffff;
/* background: @theme_bg_color; */
border-bottom: 3px solid @theme_fg_color;
/* color: @theme_fg_color; */
}
#workspaces button.urgent {
background-color: #eb4d4b;
/* background: @theme_fg_color; */
/* color: @theme_selected_bg_color; */
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
#mode {
margin: 0 4px;
padding: 0 4px;
/* background: @theme_fg_color; */
/* color: @unfocused_borders; */
}
label:focus {
background-color: #000000;
#pulseaudio, #network, #cpu, #memory, #disk, #temperature, #battery, #language, #clock, #tray {
margin: 0 4px;
padding: 0 2px;
}

View file

@ -34,10 +34,8 @@
"1" = "";
"2" = "";
"3" = "";
"8" = "";
"9" = "";
urgent = "";
default = "";
};
sort-by-number = true;
};