Move polybar config into nix properly, add dummy tray target to start polybar properly
This commit is contained in:
parent
56ae5967fa
commit
c411cc8ab9
7
nixos/desktop/systemd.nix
Normal file
7
nixos/desktop/systemd.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
systemd.user.targets.tray = {
|
||||
enable = true;
|
||||
wantedBy = ["graphical-session.target"];
|
||||
};
|
||||
}
|
|
@ -5,6 +5,9 @@
|
|||
./xserver.nix
|
||||
./sddm.nix
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
xwallpaper
|
||||
];
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.xterm.enable = false;
|
||||
|
@ -17,7 +20,7 @@
|
|||
displayManager = {
|
||||
defaultSession = "xfce+bspwm";
|
||||
sessionCommands = ''
|
||||
xwallpaper --daemon --center $HOME/.dotfiles/wallpaper/images_dark/1920x1080.png
|
||||
${pkgs.xwallpaper}/bin/xwallpaper --daemon --center $HOME/.dotfiles/wallpaper/images_dark/1920x1080.png
|
||||
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
./systemd.nix
|
||||
];
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
|
10
nixos/home-manager/env/bspwm.nix
vendored
10
nixos/home-manager/env/bspwm.nix
vendored
|
@ -14,10 +14,18 @@
|
|||
pointer_action3 = "resize_corner";
|
||||
};
|
||||
monitors = {
|
||||
"primary" = ["I" "II" "III" "IV" "V"];
|
||||
"primary" = ["I" "II" "III" "IV"];
|
||||
};
|
||||
rules = {
|
||||
"Xfce4-terminal".state = "floating";
|
||||
"kitty" = {
|
||||
desktop = "^1";
|
||||
focus = true;
|
||||
};
|
||||
"firefox" = {
|
||||
desktop = "^2";
|
||||
focus = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,15 +16,55 @@
|
|||
;
|
||||
;==========================================================
|
||||
|
||||
[global/wm]
|
||||
include-file = ~/.dotfiles/polybar/macchiato.ini
|
||||
[colors]
|
||||
base = #24273a
|
||||
mantle = #1e2030
|
||||
crust = #181926
|
||||
|
||||
text = #cad3f5
|
||||
subtext0 = #a5adcb
|
||||
subtext1 = #b8c0e0
|
||||
|
||||
surface0 = #363a4f
|
||||
surface1 = #494d64
|
||||
surface2 = #5b6078
|
||||
|
||||
overlay0 = #6e738d
|
||||
overlay1 = #8087a2
|
||||
overlay2 = #939ab7
|
||||
|
||||
|
||||
blue = #8aadf4
|
||||
lavender = #b7bdf8
|
||||
sapphire = #7dc4e4
|
||||
sky = #91d7e3
|
||||
teal = #8bd5ca
|
||||
green = #a6da95
|
||||
yellow = #eed49f
|
||||
peach = #f5a97f
|
||||
maroon = #ee99a0
|
||||
red = #ed8796
|
||||
mauve = #c6a0f6
|
||||
pink = #f5bde6
|
||||
flamingo = #f0c6c6
|
||||
rosewater = #f4dbd6
|
||||
|
||||
transparent = #00000000
|
||||
|
||||
background = ${colors.base}
|
||||
background-alt = ${colors.crust}
|
||||
foreground = ${colors.text}
|
||||
primary = ${colors.lavender}
|
||||
secondary = ${colors.mauve}
|
||||
alert = ${colors.red}
|
||||
disabled = ${colors.surface0}
|
||||
|
||||
[bar/example]
|
||||
width = 100%
|
||||
height = 24pt
|
||||
radius = 6
|
||||
|
||||
; dpi = 96
|
||||
dpi = 96
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
5
nixos/home-manager/env/polybar.nix
vendored
5
nixos/home-manager/env/polybar.nix
vendored
|
@ -1,7 +1,8 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.polybar = {
|
||||
enable = true;
|
||||
script = "polybar -c $HOME/.dotfiles/polybar/polybar.ini &";
|
||||
config = ./config/polybar/polybar.ini;
|
||||
script = "${pkgs.polybar}/bin/polybar &";
|
||||
};
|
||||
}
|
||||
|
|
2
nixos/home-manager/env/sxhkd.nix
vendored
2
nixos/home-manager/env/sxhkd.nix
vendored
|
@ -18,7 +18,7 @@
|
|||
"super + g" = "bspc node -s biggest";
|
||||
|
||||
# Custom scripts
|
||||
"super + p" = "$HOME/.dotfiles/scripts/powermenu";
|
||||
"super + p" = "xfce4-session-logout"; # "$HOME/.dotfiles/scripts/powermenu";
|
||||
"super + e" = "$HOME/.dotfiles/scripts/power-profiles";
|
||||
|
||||
# State/Flags
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.nextcloud-client = {
|
||||
enable = true;
|
||||
startInBackground = true;
|
||||
};
|
||||
#services.nextcloud-client = {
|
||||
# enable = true;
|
||||
# startInBackground = true;
|
||||
#};
|
||||
home.packages = with pkgs; [
|
||||
zotero
|
||||
];
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
;-------------------------
|
||||
; Catppuccin Macchiato Palette
|
||||
; Maintainer: justTOBBI
|
||||
;--------------------------
|
||||
|
||||
[colors]
|
||||
base = #24273a
|
||||
mantle = #1e2030
|
||||
crust = #181926
|
||||
|
||||
text = #cad3f5
|
||||
subtext0 = #a5adcb
|
||||
subtext1 = #b8c0e0
|
||||
|
||||
surface0 = #363a4f
|
||||
surface1 = #494d64
|
||||
surface2 = #5b6078
|
||||
|
||||
overlay0 = #6e738d
|
||||
overlay1 = #8087a2
|
||||
overlay2 = #939ab7
|
||||
|
||||
|
||||
blue = #8aadf4
|
||||
lavender = #b7bdf8
|
||||
sapphire = #7dc4e4
|
||||
sky = #91d7e3
|
||||
teal = #8bd5ca
|
||||
green = #a6da95
|
||||
yellow = #eed49f
|
||||
peach = #f5a97f
|
||||
maroon = #ee99a0
|
||||
red = #ed8796
|
||||
mauve = #c6a0f6
|
||||
pink = #f5bde6
|
||||
flamingo = #f0c6c6
|
||||
rosewater = #f4dbd6
|
||||
|
||||
transparent = #00000000
|
||||
|
||||
background = ${colors.base}
|
||||
background-alt = ${colors.crust}
|
||||
foreground = ${colors.text}
|
||||
primary = ${colors.lavender}
|
||||
secondary = ${colors.mauve}
|
||||
alert = ${colors.red}
|
||||
disabled = ${colors.surface0}
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
POLYBAR_CONFIG_DIR="$HOME/.dotfiles/polybar"
|
||||
polybar -c "$POLYBAR_CONFIG_DIR/polybar.ini" & disown
|
||||
#polybar -c "$POLYBAR_CONFIG_DIR/config" pam1 & disown
|
||||
#polybar -c "$POLYBAR_CONFIG_DIR/config" pam2 & disown
|
||||
#polybar -c "$POLYBAR_CONFIG_DIR/config" pam3 & disown
|
||||
#polybar -c "$POLYBAR_CONFIG_DIR/config" pam4 & disown
|
||||
#polybar -c "$POLYBAR_CONFIG_DIR/config" pam5 & disown
|
||||
#polybar -c "$POLYBAR_CONFIG_DIR/config" pam6 & disown
|
Loading…
Reference in a new issue