added rofi config
This commit is contained in:
parent
02ce8fd409
commit
9c63bb1dbd
5 changed files with 30 additions and 87 deletions
|
|
@ -91,6 +91,7 @@
|
||||||
./modules/home-manager/dconf-settings.nix
|
./modules/home-manager/dconf-settings.nix
|
||||||
./modules/home-manager/syncthing.nix
|
./modules/home-manager/syncthing.nix
|
||||||
./modules/home-manager/waybar.nix
|
./modules/home-manager/waybar.nix
|
||||||
|
./modules/home-manager/rofi.nix
|
||||||
]; #extra modules to be loaded by home-manager
|
]; #extra modules to be loaded by home-manager
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||||
exec-once=systemctl --user restart waybar.service
|
exec-once=systemctl --user start waybar.service
|
||||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
exec-once=mako
|
exec-once=mako
|
||||||
exec-once = swww init
|
exec-once = swww init
|
||||||
|
|
|
||||||
8
modules/home-manager/rofi.nix
Normal file
8
modules/home-manager/rofi.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ pkgs, config, lib, ...}:
|
||||||
|
{
|
||||||
|
programs.rofi = {
|
||||||
|
enable = true;
|
||||||
|
theme = "android_notification";
|
||||||
|
location = "top-left";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -5,8 +5,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: rgba(68, 64, 60, 1);
|
background-color: rgba(68, 64, 60, 0.0);
|
||||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
transition-property: background-color;
|
transition-property: background-color;
|
||||||
transition-duration: .5s;
|
transition-duration: .5s;
|
||||||
|
|
@ -16,15 +15,6 @@ window#waybar.hidden {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
window#waybar.empty {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
window#waybar.solo {
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
window#waybar.termite {
|
window#waybar.termite {
|
||||||
background-color: #3F3F3F;
|
background-color: #3F3F3F;
|
||||||
}
|
}
|
||||||
|
|
@ -38,19 +28,13 @@ button {
|
||||||
/* Use box-shadow instead of border so the text isn't offset */
|
/* Use box-shadow instead of border so the text isn't offset */
|
||||||
box-shadow: inset 0 -3px transparent;
|
box-shadow: inset 0 -3px transparent;
|
||||||
/* Avoid rounded borders under each button name */
|
/* Avoid rounded borders under each button name */
|
||||||
border: none;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||||
button:hover {
|
button:hover {
|
||||||
background: inherit;
|
background: inherit;
|
||||||
box-shadow: inset 0 -3px #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode {
|
|
||||||
background-color: #64727D;
|
|
||||||
border-bottom: 3px solid #ffffff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
#clock,
|
||||||
|
|
@ -62,34 +46,29 @@ button:hover {
|
||||||
#backlight,
|
#backlight,
|
||||||
#network,
|
#network,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#wireplumber,
|
#wireplumber {
|
||||||
#custom-media,
|
|
||||||
#tray,
|
|
||||||
#mode,
|
|
||||||
#idle_inhibitor,
|
|
||||||
#scratchpad,
|
|
||||||
#mpd {
|
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
color: #030712;
|
color: #030712;
|
||||||
}
|
}
|
||||||
|
|
||||||
#window,
|
#window {
|
||||||
#workspaces {
|
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
background-color: #ec4899;
|
background-color: #ec4899;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
background-color: #ffffff;
|
background-color: #0ea5e9;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging,
|
#battery.charging,
|
||||||
#battery.plugged {
|
#battery.plugged {
|
||||||
color: #ffffff;
|
color: #22c55e;
|
||||||
background-color: #26A65B;
|
background-color: #26A65B;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -117,24 +96,29 @@ label:focus {
|
||||||
#cpu {
|
#cpu {
|
||||||
background-color: #10b981;
|
background-color: #10b981;
|
||||||
color: #030712;
|
color: #030712;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#memory {
|
#memory {
|
||||||
background-color: #d946ef;
|
background-color: #d946ef;
|
||||||
color: #030712;
|
color: #030712;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#disk {
|
#disk {
|
||||||
background-color: #964B00;
|
background-color: #964B00;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#backlight {
|
#backlight {
|
||||||
background-color: #8b5cf6;
|
background-color: #8b5cf6;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#network {
|
#network {
|
||||||
background-color: #0ea5e9;
|
background-color: #0ea5e9;
|
||||||
color: #030712;
|
color: #030712;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#network.disconnected {
|
#network.disconnected {
|
||||||
|
|
@ -144,6 +128,7 @@ label:focus {
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
background-color: #eab308;
|
background-color: #eab308;
|
||||||
color: #030712;
|
color: #030712;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pulseaudio.muted {
|
#pulseaudio.muted {
|
||||||
|
|
@ -154,73 +139,22 @@ label:focus {
|
||||||
#wireplumber {
|
#wireplumber {
|
||||||
background-color: #fff0f5;
|
background-color: #fff0f5;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wireplumber.muted {
|
#wireplumber.muted {
|
||||||
background-color: #f53c3c;
|
background-color: #f53c3c;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-media {
|
|
||||||
background-color: #66cc99;
|
|
||||||
color: #2a5c45;
|
|
||||||
min-width: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media.custom-spotify {
|
|
||||||
background-color: #66cc99;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media.custom-vlc {
|
|
||||||
background-color: #ffa000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature {
|
#temperature {
|
||||||
background-color: #f0932b;
|
background-color: #f0932b;
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#temperature.critical {
|
#temperature.critical {
|
||||||
background-color: #eb4d4b;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
|
||||||
background-color: #2980b9;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray>.passive {
|
|
||||||
-gtk-icon-effect: dim;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray>.needs-attention {
|
|
||||||
-gtk-icon-effect: highlight;
|
|
||||||
background-color: #eb4d4b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#idle_inhibitor {
|
|
||||||
background-color: #2d3436;
|
|
||||||
}
|
|
||||||
|
|
||||||
#idle_inhibitor.activated {
|
|
||||||
background-color: #ecf0f1;
|
|
||||||
color: #2d3436;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd {
|
|
||||||
background-color: #66cc99;
|
|
||||||
color: #2a5c45;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd.disconnected {
|
|
||||||
background-color: #f53c3c;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd.stopped {
|
|
||||||
background-color: #90b1b1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd.paused {
|
|
||||||
background-color: #51a37a;
|
|
||||||
}
|
|
||||||
|
|
||||||
#language {
|
#language {
|
||||||
background: #00b093;
|
background: #00b093;
|
||||||
color: #740864;
|
color: #740864;
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@
|
||||||
spacing = 8;
|
spacing = 8;
|
||||||
modules-left = [];
|
modules-left = [];
|
||||||
modules-center = [
|
modules-center = [
|
||||||
|
"temperature"
|
||||||
];
|
];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"battery"
|
"battery"
|
||||||
"temperature"
|
|
||||||
"backlight"
|
"backlight"
|
||||||
"cpu"
|
"cpu"
|
||||||
"memory"
|
"memory"
|
||||||
|
|
@ -79,9 +79,9 @@
|
||||||
""
|
""
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# "battery#bat2": {
|
"battery#bat2" = {
|
||||||
# "bat": "BAT2"
|
bat = "BAT2";
|
||||||
# },
|
};
|
||||||
network = {
|
network = {
|
||||||
format-wifi = "{essid} ({signalStrength}%) ";
|
format-wifi = "{essid} ({signalStrength}%) ";
|
||||||
format-ethernet = "{ipaddr}/{cidr} ";
|
format-ethernet = "{ipaddr}/{cidr} ";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue