ironbar, sway tweaks, user services
This commit is contained in:
parent
899f706e3f
commit
fbc47ef8f7
5 changed files with 117 additions and 33 deletions
|
@ -12,8 +12,8 @@
|
|||
in {
|
||||
home.stateVersion = "22.11";
|
||||
|
||||
imports = [
|
||||
inputs.ironbar.homeManagerModules.default
|
||||
imports = [
|
||||
inputs.ironbar.homeManagerModules.default
|
||||
# inputs.anyrun.homeManagerModules.default
|
||||
# ./programs/eww/default.nix
|
||||
];
|
||||
|
@ -97,28 +97,36 @@ in {
|
|||
icon_theme = icons.name;
|
||||
|
||||
start = [
|
||||
{ type = "workspaces"; all_monitors = true; }
|
||||
{ type = "sys_info";
|
||||
{
|
||||
type = "workspaces";
|
||||
all_monitors = true;
|
||||
}
|
||||
{
|
||||
type = "sys_info";
|
||||
interval.memory = 30;
|
||||
interval.cpu = 1;
|
||||
format = [
|
||||
" {cpu_percent}%"
|
||||
" {memory_used} / {memory_total} GB"
|
||||
" {cpu_percent}%"
|
||||
" {memory_used} / {memory_total} GB"
|
||||
];
|
||||
}
|
||||
];
|
||||
center = [
|
||||
{ type = "focused"; icon_size = 8; }
|
||||
{
|
||||
type = "focused";
|
||||
icon_size = 8;
|
||||
}
|
||||
];
|
||||
end = [
|
||||
{ type = "music";
|
||||
{
|
||||
type = "music";
|
||||
player_type = "mpris";
|
||||
|
||||
on_click_middle = "playerctl play-pause";
|
||||
on_scroll_up = "playerctl volume +5";
|
||||
on_scroll_down = "playerctl volume -5";
|
||||
}
|
||||
{ type = "clock"; }
|
||||
{type = "clock";}
|
||||
];
|
||||
};
|
||||
style = with palette-hex; (builtins.replaceStrings
|
||||
|
@ -140,7 +148,7 @@ in {
|
|||
util.fg
|
||||
normal.red
|
||||
fonts.sans.name
|
||||
"10"# (builtins.toString fonts.sans.size)
|
||||
"10" # (builtins.toString fonts.sans.size)
|
||||
]
|
||||
(builtins.readFile dots/ironbar.css));
|
||||
};
|
||||
|
@ -191,16 +199,10 @@ in {
|
|||
xkb_options = "caps:escape";
|
||||
};
|
||||
};
|
||||
startup = [
|
||||
{command = "mullvad connect";}
|
||||
{command = "swaybg -i $HOME/.nix/wallpaper.png -m fill";}
|
||||
{command = "ckb-next -c -b";}
|
||||
{command = "xrdb -l ~/.Xresources";}
|
||||
{command = "swayosd --max-volume 100";}
|
||||
{command = "keepassxc";}
|
||||
{command = "swaync";}
|
||||
{command = "persway daemon -d spiral -f \"[tiling] opacity 0.98; opacity 1\"";}
|
||||
{command = "flashfocus -o 0.95 -t 175 -n 30 --no-flash-fullscreen -l on_open_close";}
|
||||
startup = with pkgs; [
|
||||
{command = "${lib.getExe mullvad} connect";}
|
||||
{command = "${lib.getExe xorg.xrdb} -l ~/.Xresources";}
|
||||
{command = "${lib.getExe flashfocus} -o 0.95 -t 175 -n 30 --no-flash-fullscreen -l on_open_close";}
|
||||
];
|
||||
terminal = "kitty";
|
||||
modifier = "Mod4";
|
||||
|
@ -210,7 +212,7 @@ in {
|
|||
"Mod4+e" = "exec thunar";
|
||||
"Mod4+f" = "exec firefox";
|
||||
"Mod4+Shift+e" = "exec wlogout";
|
||||
"Mod4+Shift+s" = "exec grim -g \"$(slurp)\" -t png -o \"$HOME/Pictures/$(date +%F_%H-%m-%S).png\" && notify-send \"Screenshot taken.\"";
|
||||
"Mod4+Shift+s" = "exec grim -g \"$(slurp)\" -t png -o \"${config.home.homeDirectory}/Pictures/$(date +%F_%H-%m-%S).png\" && notify-send \"Screenshot taken.\"";
|
||||
"Mod4+Shift+Ctrl+s" = "exec kooha";
|
||||
"Mod4+n" = "exec swaync-client -t";
|
||||
"Mod4+Space" = "floating toggle; move absolute position center";
|
||||
|
@ -298,6 +300,28 @@ in {
|
|||
};
|
||||
|
||||
systemd.user.startServices = "sd-switch";
|
||||
systemd.user.services = with pkgs;
|
||||
builtins.mapAttrs (name: cmd: {
|
||||
Unit = {
|
||||
Description = "${name}";
|
||||
};
|
||||
Service = {
|
||||
ExecStart = cmd;
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
})
|
||||
{
|
||||
swaybg = "${lib.getExe swaybg} -i ${rice.bg.image} -m fill";
|
||||
ckb-next = "${lib.getExe ckb-next} -c -b";
|
||||
swayosd = "${lib.getExe swayosd} --max-volume 100";
|
||||
keepassxc = "${lib.getExe keepassxc}";
|
||||
swaync = "${lib.getExe swaynotificationcenter}";
|
||||
persway = "${lib.getExe persway} daemon -d spiral -f \"[tiling] opacity 0.98; opacity 1\"";
|
||||
# PYTHON APP CANT RUN AS SYSTEMD SERVICE HOW EMBARASSING
|
||||
# flashfocus = "${lib.getExe flashfocus} -o 0.95 -t 175 -n 30 --no-flash-fullscreen -l on_open_close";
|
||||
};
|
||||
|
||||
xdg.enable = true;
|
||||
xresources.properties = with palette-hex; {
|
||||
|
@ -399,7 +423,7 @@ in {
|
|||
# config = {
|
||||
# plugins = with inputs.anyrun.packages.${pkgs.system}; [ applications dictionary rink symbols stdin shell ];
|
||||
# y = { fraction = 0.35; };
|
||||
# width = { absolute = 400; };
|
||||
# width = { absolute = 400; };
|
||||
# height = { absolute = 600; };
|
||||
# showResultsImmediately = true;
|
||||
# };
|
||||
|
@ -626,16 +650,15 @@ in {
|
|||
};
|
||||
|
||||
languages = {
|
||||
|
||||
language = [
|
||||
{
|
||||
name = "rust";
|
||||
language-servers = [ "rust-analyzer" ];
|
||||
language-servers = ["rust-analyzer"];
|
||||
}
|
||||
];
|
||||
|
||||
# having tons of fun backporting the old config style to the new config schema!!!!
|
||||
language-server = {
|
||||
language-server = {
|
||||
rust-analyzer = {
|
||||
config = {
|
||||
cargo = {
|
||||
|
@ -652,7 +675,6 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue