furthre config on laptop
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
terminal.shell = {
|
||||
program = "/bin/sh";
|
||||
args = [
|
||||
"-c"
|
||||
''
|
||||
if command -v zellij >/dev/null 2>&1; then
|
||||
exec zellij
|
||||
else
|
||||
exec "${SHELL:-/bin/bash}"
|
||||
fi
|
||||
''
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
home.stateVersion = "24.05";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting # Disable greeting
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
# night light
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
provider = "geoclue2";
|
||||
tray = true;
|
||||
temperature = {
|
||||
night = 1700;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages= with pkgs; [
|
||||
rofi-wayland
|
||||
rofi-bluetooth
|
||||
networkmanager_dmenu
|
||||
];
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
theme = "glue_pro_blue";
|
||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||
|
||||
extraConfig = {
|
||||
modi = "combi,window,drun,ssh";
|
||||
show-icons = true;
|
||||
drun-display-format = "{icon} {name}";
|
||||
disable-history = false;
|
||||
hide-scrollbar = true;
|
||||
display-drun = " Apps ";
|
||||
sidebar-mode = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,231 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
# define some constants
|
||||
mod = "Mod4";
|
||||
alt = "Mod1";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./swaylock.nix
|
||||
./swayidle.nix
|
||||
./gammastep.nix
|
||||
];
|
||||
# enable clipboard history
|
||||
services.cliphist.enable = true;
|
||||
|
||||
# define cursor, also fixes tiny cursor on hidpi
|
||||
home.pointerCursor = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.adwaita-icon-theme;
|
||||
size = 24;
|
||||
x11 = {
|
||||
enable = true;
|
||||
defaultCursor = "Adwaita";
|
||||
};
|
||||
};
|
||||
|
||||
# configure sway
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
config = rec {
|
||||
modifier = mod;
|
||||
terminal = "alacritty";
|
||||
startup = [
|
||||
{ command = "blueman-applet";}
|
||||
];
|
||||
defaultWorkspace = "1";
|
||||
bars = [];
|
||||
fonts = {
|
||||
names = [ "MesloLGS NF" ];
|
||||
size = 11.0;
|
||||
};
|
||||
input = {
|
||||
"type:touchpad" = {
|
||||
tap = "enabled";
|
||||
dwt = "enabled";
|
||||
click_method = "clickfinger";
|
||||
natural_scroll = "enabled";
|
||||
tap_button_map = "lrm";
|
||||
};
|
||||
"*" = {
|
||||
xkb_layout = "us";
|
||||
xkb_variant = "intl";
|
||||
};
|
||||
};
|
||||
|
||||
gaps = { inner = 8; outer = -4;
|
||||
smartGaps = true;
|
||||
smartBorders = "on";
|
||||
};
|
||||
|
||||
keybindings = lib.mkOptionDefault {
|
||||
"${mod}+Return" = "exec alacritty";
|
||||
"${mod}+Ctrl+Return" = "exec alacritty zellij";
|
||||
"${mod}+Shift+Return" = "exec rofi -show combi";
|
||||
|
||||
"${mod}+Ctrl+l" = "exec swaylock";
|
||||
"${mod}+Shift+r" = "reload";
|
||||
|
||||
"${mod}+Ctrl+Shift+Alt+s" = "exec systemctl suspend";
|
||||
"${mod}+Ctrl+Shift+Alt+h" = "exec systemctl hibernate";
|
||||
|
||||
"XF86AudioLowerVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
|
||||
"XF86AudioRaiseVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+";
|
||||
"XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
"${mod}+XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
|
||||
|
||||
"XF86AudioPlay" = "exec playerctl play-pause";
|
||||
"XF86AudioNext" = "exec playerctl next";
|
||||
"XF86AudioPrev" = "exec playerctl previous";
|
||||
"${mod}+XF86AudioRaiseVolume" = "exec playerctl next";
|
||||
"${mod}+XF86AudioLowerVolume" = "exec playerctl previous";
|
||||
|
||||
"XF86MonBrightnessUp" = "exec light -A 5; notify-send 'Brightness set to $(light)'";
|
||||
"XF86MonBrightnessDown" = "exec light -U 5; notify-send 'Brightness set to $(light)'";
|
||||
"${mod}+XF86MonBrightnessDown" = "exec light -S 0.2; notify-send 'Brightness set to min'";
|
||||
"${mod}+XF86MonBrightnessUp" = "exec light -S 100; notify-send 'Brightness set to max'";
|
||||
|
||||
"XF86Calculator" = "exec qalculate-gtk";
|
||||
|
||||
"${mod}+Shift+c" = "kill";
|
||||
|
||||
"${mod}+u" = "border none";
|
||||
"${mod}+y" = "border pixel 1";
|
||||
"${mod}+n" = "border normal";
|
||||
"${mod}+Shift+n" = "border none";
|
||||
|
||||
"${mod}+h" = "focus left";
|
||||
"${mod}+j" = "focus down";
|
||||
"${mod}+k" = "focus up";
|
||||
"${mod}+l" = "focus right";
|
||||
"${mod}+Left" = "focus left";
|
||||
"${mod}+Down" = "focus down";
|
||||
"${mod}+Up" = "focus up";
|
||||
"${mod}+Right" = "focus right";
|
||||
|
||||
"${mod}+Shift+h" = "move left";
|
||||
"${mod}+Shift+j" = "move down";
|
||||
"${mod}+Shift+k" = "move up";
|
||||
"${mod}+Shift+l" = "move right";
|
||||
"${mod}+Shift+Left" = "move left";
|
||||
"${mod}+Shift+Down" = "move down";
|
||||
"${mod}+Shift+Up" = "move up";
|
||||
"${mod}+Shift+Right" = "move right";
|
||||
|
||||
"${mod}+b" = "workspace back_and_forth";
|
||||
"${mod}+Shift+b" = "move container to workspace back_and_forth; workspace back_and_forth";
|
||||
"${mod}+Ctrl+Right" = "workspace next";
|
||||
"${mod}+Ctrl+Left" = "workspace prev";
|
||||
|
||||
"${mod}+Shift+minus" = "move scratchpad";
|
||||
"${mod}+minus" = "scratchpad show";
|
||||
|
||||
"${mod}+z" = "split h; exec notify-send 'Tile horizontally'";
|
||||
"${mod}+v" = "split v; exec notify-send 'Tile vertically'";
|
||||
"${mod}+q" = "split toggle";
|
||||
"${mod}+f" = "fullscreen toggle";
|
||||
"${mod}+s" = "layout stacking";
|
||||
"${mod}+w" = "layout tabbed";
|
||||
"${mod}+e" = "layout toggle split";
|
||||
"${mod}+Shift+space" = "floating toggle";
|
||||
"${mod}+space" = "focus mode_toggle";
|
||||
"${mod}+Shift+s" = "sticky toggle";
|
||||
"${mod}+a" = "focus parent";
|
||||
|
||||
} // builtins.listToAttrs (builtins.concatMap (n: let
|
||||
# create keybindings for workspaces
|
||||
key = toString (n + 1);
|
||||
in [
|
||||
{
|
||||
name = "${mod}+${key}";
|
||||
value = "workspace ${key}";
|
||||
}
|
||||
{
|
||||
name = "${mod}+Ctrl+${key}";
|
||||
value = "move container to workspace ${key}";
|
||||
}
|
||||
{
|
||||
name = "${mod}+Shift+${key}";
|
||||
value = "move container to workspace ${key}; workspace ${key}";
|
||||
}
|
||||
]) (lib.range 0 8));
|
||||
|
||||
assigns = {
|
||||
"2: web" = [{ class = "^Brave$"; }];
|
||||
"9: mail" = [{ class = "Thunderbird"; }];
|
||||
};
|
||||
|
||||
modes = {
|
||||
resize = {
|
||||
"h" = "resize shrink width 4 px or 4 ppt";
|
||||
"j" = "resize grow height 4 px or 4 ppt";
|
||||
"k" = "resize shrink height 4 px or 4 ppt";
|
||||
"l" = "resize grow width 4 px or 4 ppt";
|
||||
"Left" = "resize shrink width 10 px or 10 ppt";
|
||||
"Down" = "resize grow height 10 px or 10 ppt";
|
||||
"Up" = "resize shrink height 10 px or 10 ppt";
|
||||
"Right" = "resize grow width 10 px or 10 ppt";
|
||||
"Return" = "mode default";
|
||||
"Escape" = "mode default";
|
||||
};
|
||||
};
|
||||
|
||||
colors = {
|
||||
focused = {
|
||||
border = "#ff8800";
|
||||
background = "#2F3D44";
|
||||
text = "#FF8800";
|
||||
indicator = "#FDF6E3";
|
||||
childBorder = "#ff8800";
|
||||
};
|
||||
focusedInactive = {
|
||||
border = "#333333";
|
||||
background = "#222222";
|
||||
text = "#444444";
|
||||
indicator = "#454948";
|
||||
childBorder = "#222222";
|
||||
};
|
||||
unfocused = {
|
||||
border = "#2F3D44";
|
||||
background = "#2F3D44";
|
||||
text = "#FF8800";
|
||||
indicator = "#454948";
|
||||
childBorder = "#222222";
|
||||
};
|
||||
urgent = {
|
||||
border = "#CB4B16";
|
||||
background = "#FDF6E3";
|
||||
text = "#FF8800";
|
||||
indicator = "#268BD2";
|
||||
childBorder = "#222222";
|
||||
};
|
||||
placeholder = {
|
||||
border = "#000000";
|
||||
background = "#0c0c0c";
|
||||
text = "#ffffff";
|
||||
indicator = "#000000";
|
||||
childBorder = "#222222";
|
||||
};
|
||||
background = "#2B2C2B";
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
default_border pixel 1
|
||||
floating_modifier ${mod}
|
||||
|
||||
# === Floating Windows ===
|
||||
for_window [title="alsamixer"] floating enable border pixel 1
|
||||
for_window [title="Qalculate!"] floating enable border normal
|
||||
for_window [class="Psensor"] floating enable border normal
|
||||
for_window [title="lxrandr"] floating enable border normal
|
||||
for_window [class="Blueman-manager"] floating enable border normal
|
||||
for_window [class="GParted"] floating enable border normal
|
||||
for_window [class="pavucontrol"] floating enable
|
||||
for_window [class="Volume Control"] floating enable
|
||||
for_window [class="(?i)VirtualBox"] floating enable border normal
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
# config swayidle
|
||||
services.swayidle =
|
||||
let
|
||||
# Lock command
|
||||
lock = "${pkgs.swaylock}/bin/swaylock --daemonize";
|
||||
# TODO: modify "display" function based on your window manager
|
||||
# Sway
|
||||
display = status: "swaymsg 'output * power ${status}'";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 295; # in seconds
|
||||
command = "${pkgs.libnotify}/bin/notify-send 'Locking in 5 seconds' -t 5000";
|
||||
}
|
||||
{
|
||||
timeout = 300;
|
||||
command = lock;
|
||||
}
|
||||
{
|
||||
timeout = 305;
|
||||
command = display "off";
|
||||
resumeCommand = display "on";
|
||||
}
|
||||
{
|
||||
timeout = 600;
|
||||
command = "${pkgs.systemd}/bin/systemctl suspend-then-hibernate";
|
||||
}
|
||||
];
|
||||
events = [
|
||||
{
|
||||
event = "before-sleep";
|
||||
# adding duplicated entries for the same event may not work
|
||||
command = (display "off") + "; " + lock;
|
||||
}
|
||||
{
|
||||
event = "after-resume";
|
||||
command = display "on";
|
||||
}
|
||||
{
|
||||
event = "lock";
|
||||
command = (display "off") + "; " + lock;
|
||||
}
|
||||
{
|
||||
event = "unlock";
|
||||
command = display "on";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/8957e93c95867faafec7f9988cedddd6837859fa/wallpapers/nix-wallpaper-binary-black.png";
|
||||
sha256 = "0v3111a1ihsh4ajijbjh6y7a8p5cb5g3rdxqjbzx37pn1k9s254s";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
image = "${wallpaper}";
|
||||
color = "000000";
|
||||
font-size = 24;
|
||||
indicator-idle-visible = false;
|
||||
indicator-radius = 100;
|
||||
line-color = "ffffff";
|
||||
show-failed-attempts = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
|
||||
programs.starship.enable = true;
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
if type -q starship
|
||||
starship init fish | source
|
||||
end
|
||||
export VISUAL=nvim;
|
||||
export EDITOR=nvim;
|
||||
'';
|
||||
};
|
||||
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,305 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
scriptDir = ./../../scripts/waybar;
|
||||
|
||||
# Get all files in the scriptDir
|
||||
scriptFiles = builtins.filter (name:
|
||||
(builtins.readDir scriptDir).${name} == "regular"
|
||||
) (builtins.attrNames (builtins.readDir scriptDir));
|
||||
|
||||
# Map to home.file entries
|
||||
waybarScripts = builtins.listToAttrs (map (name: {
|
||||
name = "bin/${name}";
|
||||
value = {
|
||||
source = "${scriptDir}/${name}";
|
||||
executable = true;
|
||||
};
|
||||
}) scriptFiles);
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
gnugrep
|
||||
coreutils
|
||||
gawk
|
||||
bash
|
||||
];
|
||||
|
||||
home.file = waybarScripts;
|
||||
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
settings = [{
|
||||
command = "waybar";
|
||||
layer = "top";
|
||||
position = "top";
|
||||
"modules-left" = [
|
||||
"tray"
|
||||
#"custom/cpu_linux"
|
||||
"cpu"
|
||||
"temperature"
|
||||
"memory"
|
||||
"disk"
|
||||
"custom/nvidia"
|
||||
];
|
||||
"modules-center" = [ "sway/window" ];
|
||||
"modules-right" = [
|
||||
"group/blight"
|
||||
"custom/colorpicker"
|
||||
"idle_inhibitor"
|
||||
"bluetooth"
|
||||
"group/audio"
|
||||
"group/networking"
|
||||
"battery"
|
||||
"clock"
|
||||
];
|
||||
|
||||
margin = null;
|
||||
spacing = 15;
|
||||
reload_style_on_change = true;
|
||||
|
||||
"clock" = {
|
||||
format = "{:%a %d.%m.%y | Week: %U | %T}";
|
||||
interval = 1;
|
||||
tooltip-format = "\n<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
||||
calendar-weeks-pos = "right";
|
||||
today-format = "<span color='#7645AD'><b><u>{}</u></b></span>";
|
||||
format-calendar = "<span color='#aeaeae'><b>{}</b></span>";
|
||||
format-calendar-weeks = "<span color='#aeaeae'><b>W{:%V}</b></span>";
|
||||
format-calendar-weekdays = "<span color='#aeaeae'><b>{}</b></span>";
|
||||
};
|
||||
|
||||
"disk" = {
|
||||
interval = 30;
|
||||
format = " {percentage_used}% {free:2} free";
|
||||
path = "/";
|
||||
};
|
||||
|
||||
"memory" = {
|
||||
format = " {percentage}% {used:.1f}/{total:.1f} S: {swapUsed:.1f}/{swapTotal:.1f}";
|
||||
};
|
||||
"cpu" = {
|
||||
interval = 1;
|
||||
format = "{usage}% ";
|
||||
};
|
||||
"custom/cpu_linux" = {
|
||||
exec = "~/bin/cpu_linux.sh";
|
||||
"return-type" = "json";
|
||||
interval = 2;
|
||||
format = ": {text}%";
|
||||
};
|
||||
|
||||
"custom/nvidia" = {
|
||||
exec = "nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv,nounits,noheader | sed 's/\\([0-9]\\+\\), \\([0-9]\\+\\)/\\1% @ \\2°C/g'";
|
||||
format = " {}";
|
||||
interval = 4;
|
||||
};
|
||||
|
||||
"temperature" = {
|
||||
format = " {temperatureC}°C";
|
||||
hwmon-path = "/sys/devices/platform/coretemp.0/hwmon/hwmon7/temp1_input";
|
||||
format-critical = " {temperatureC}°C";
|
||||
interval = 1;
|
||||
critical-threshold = 80;
|
||||
on-click = "psensor";
|
||||
};
|
||||
|
||||
"tray" = {
|
||||
icon-size = 14;
|
||||
spacing = 5;
|
||||
};
|
||||
|
||||
"idle_inhibitor" = {
|
||||
format = "<span font='12'>{icon}</span>";
|
||||
format-icons = {
|
||||
activated = " Presentation mode on";
|
||||
deactivated = "";
|
||||
};
|
||||
};
|
||||
|
||||
"bluetooth" = {
|
||||
format-on = "";
|
||||
format-off = "";
|
||||
format-disabled = "";
|
||||
format-connected = "";
|
||||
format-connected-battery = "{device_battery_percentage}% ";
|
||||
tooltip-format = "{controller_alias}\t{controller_address}\n\n{num_connections} connected";
|
||||
tooltip-format-connected = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
|
||||
tooltip-format-enumerate-connected = "{device_alias}\t{device_address}";
|
||||
tooltip-format-enumerate-connected-battery = "{device_alias}\t{device_address}\t{device_battery_percentage}%";
|
||||
on-click = "rofi-bluetooth";
|
||||
};
|
||||
|
||||
"pulseaudio" = {
|
||||
format = "{volume}% {icon}";
|
||||
format-bluetooth = "";
|
||||
format-muted = "";
|
||||
tooltip-format = "{volume}% {icon}";
|
||||
format-icons = {
|
||||
headphones = "";
|
||||
bluetooth = "";
|
||||
handsfree = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = [ "" ];
|
||||
};
|
||||
scroll-step = 5;
|
||||
justify = "center";
|
||||
on-click = "pamixer -t";
|
||||
on-click-right = "pavucontrol";
|
||||
on-scroll-up = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||
on-scroll-down = "pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||
};
|
||||
|
||||
"pulseaudio#mic" = {
|
||||
format = "{format_source}";
|
||||
format-source = "";
|
||||
format-source-muted = "";
|
||||
tooltip-format = "{volume}% {format_source} ";
|
||||
on-click = "pactl set-source-mute 1 toggle";
|
||||
on-scroll-down = "pactl set-source-volume 1 -1%";
|
||||
on-scroll-up = "pactl set-source-volume 1 +1%";
|
||||
};
|
||||
|
||||
"group/audio" = {
|
||||
orientation = "horizontal";
|
||||
modules = [ "pulseaudio" "pulseaudio#mic" ];
|
||||
};
|
||||
|
||||
"group/networking" = {
|
||||
orientation = "horizontal";
|
||||
modules = [ "network" "network#speed" ];
|
||||
};
|
||||
|
||||
network = {
|
||||
format-wifi = " {essid}";
|
||||
format-ethernet = "";
|
||||
format-disconnected = "";
|
||||
tooltip-format = "{ipaddr}";
|
||||
tooltip-format-wifi = "{essid} ({signalStrength}%) \n{ipaddr} | {frequency} MHz{icon}";
|
||||
tooltip-format-ethernet = "{ifname} \n{ipaddr} | {frequency} MHz{icon} ";
|
||||
tooltip-format-disconnected = "Not Connected";
|
||||
on-click = "networkmanager_dmenu";
|
||||
};
|
||||
|
||||
"network#speed" = {
|
||||
format = " {bandwidthDownBits:20} {bandwidthUpBits:20}";
|
||||
interval = 1;
|
||||
tooltip = true;
|
||||
tooltip-format = "{ipaddr}";
|
||||
tooltip-format-wifi = "{essid} ({signalStrength}%) \n{ipaddr} | {frequency} MHz{icon} ";
|
||||
tooltip-format-ethernet = "{ifname} \n{ipaddr} | {frequency} MHz{icon} ";
|
||||
tooltip-format-disconnected = "Not Connected";
|
||||
on-click = "networkmanager_dmenu";
|
||||
};
|
||||
|
||||
"battery" = {
|
||||
interval = 4;
|
||||
states = {
|
||||
good = 95;
|
||||
warning = 30;
|
||||
critical = 20;
|
||||
};
|
||||
format = "{capacity}% <span font='16px'>{icon}</span> {power:.2f}W {time}";
|
||||
format-time = "{H}h {M}min";
|
||||
tooltip = "{time}";
|
||||
format-charging = "{capacity}% Full at {timeTo}%";
|
||||
format-plugged = "{capacity}% ";
|
||||
format-icons = [
|
||||
"" "" "" ""
|
||||
"" "" "" ""
|
||||
];
|
||||
};
|
||||
}];
|
||||
style = ''
|
||||
* {
|
||||
font-family: "JetBrainsMono Nerd Font,JetBrainsMono NF" ;
|
||||
color: white;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
background: #000000;
|
||||
}
|
||||
|
||||
.modules-center {
|
||||
background: #000000;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
background: #000000;
|
||||
}
|
||||
|
||||
#battery,
|
||||
#custom-clipboard,
|
||||
#custom-colorpicker,
|
||||
#custom-powerDraw,
|
||||
#bluetooth,
|
||||
#pulseaudio,
|
||||
#network,
|
||||
#disk,
|
||||
#memory,
|
||||
#backlight,
|
||||
#cpu,
|
||||
#temperature,
|
||||
#custom-weather,
|
||||
#idle_inhibitor,
|
||||
#jack,
|
||||
#tray,
|
||||
#window,
|
||||
#workspaces,
|
||||
#clock {
|
||||
min-width: 1ex;
|
||||
padding-right: 5px;
|
||||
}
|
||||
#tray menu * {
|
||||
color: black;
|
||||
}
|
||||
|
||||
#temperature.critical,
|
||||
#pulseaudio {
|
||||
min-width: 5ex;
|
||||
}
|
||||
#pulseaudio.muted {
|
||||
color: #FF0000;
|
||||
}
|
||||
#pulseaudio.mic.muted {
|
||||
color: #ffffff;
|
||||
}
|
||||
#pulseaudio.mic:not(.source-muted) {
|
||||
color: #fc0202;
|
||||
}
|
||||
#clock{
|
||||
color: #f9780e;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
background-color: #ffbe61;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#network.speed {
|
||||
min-width: 30ex;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
settings = {
|
||||
theme = "dracula";
|
||||
copy_on_select = true;
|
||||
show_startup_tips = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user