Misc xfce, bspwm and sxhkd update to use them again
This commit is contained in:
parent
7d6f9c922f
commit
322ef70db4
83
flake.nix
83
flake.nix
|
@ -41,6 +41,47 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
xfce-config = {pkgs, ...}: {
|
||||||
|
};
|
||||||
|
xfce-bspwm-config = {pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
nitrogen
|
||||||
|
power-profiles-daemon
|
||||||
|
xfce.thunar
|
||||||
|
flameshot
|
||||||
|
polybar
|
||||||
|
ranger
|
||||||
|
];
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
layout = "gb";
|
||||||
|
xkbVariant = "";
|
||||||
|
desktopManager = {
|
||||||
|
xterm.enable = false;
|
||||||
|
xfce = {
|
||||||
|
enable = true;
|
||||||
|
enableXfwm = false;
|
||||||
|
noDesktop = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
windowManager.bspwm.enable = true;
|
||||||
|
displayManager = {
|
||||||
|
sddm = {
|
||||||
|
enable = true;
|
||||||
|
# theme = "catppuccin-macchiato";
|
||||||
|
settings = {General = {InputMethod = "";};};
|
||||||
|
};
|
||||||
|
defaultSession = "xfce+bspwm";
|
||||||
|
sessionCommands = ''
|
||||||
|
${pkgs.nitrogen}/bin/nitrogen --set-auto ${wallpapers.outputs.default}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
programs.i3lock = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.i3lock-fancy;
|
||||||
|
};
|
||||||
|
};
|
||||||
hyprland-config = {pkgs, ...}: {
|
hyprland-config = {pkgs, ...}: {
|
||||||
imports = [hyprland.nixosModules.default];
|
imports = [hyprland.nixosModules.default];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -171,52 +212,26 @@
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
overlays = [waybar-experimental-overlay neovim-nightly-overlay.overlay];
|
overlays = [neovim-nightly-overlay.overlay];
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
home-config
|
home-config
|
||||||
hyprland-config
|
xfce-bspwm-config
|
||||||
./hosts/Ronin
|
./hosts/Ronin
|
||||||
./services/syncthing/Ronin.nix
|
./services/syncthing/Ronin.nix
|
||||||
({pkgs, ...}: let
|
({pkgs, ...}: {
|
||||||
laptop-state = pkgs.writeShellScriptBin "check-laptop-lid-state" ''
|
|
||||||
grep closed /proc/acpi/button/lid/LID0/state &&\
|
|
||||||
hyprctl dispatch dpms off eDP-1 ||\
|
|
||||||
hyprctl dispatch dpms on
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
home-manager.users.elitherl = {
|
home-manager.users.elitherl = {
|
||||||
imports = [hyprland-home-config ./home/work.nix];
|
imports = [
|
||||||
|
./home/work.nix
|
||||||
|
./home/desktop/bspwm.nix
|
||||||
|
./home/gui
|
||||||
|
];
|
||||||
home = {
|
home = {
|
||||||
username = "elitherl";
|
username = "elitherl";
|
||||||
homeDirectory = "/home/elitherl";
|
homeDirectory = "/home/elitherl";
|
||||||
stateVersion = "22.11";
|
stateVersion = "22.11";
|
||||||
packages = [laptop-state];
|
|
||||||
};
|
};
|
||||||
programs.neovim.package = pkgs.neovim-nightly;
|
programs.neovim.package = pkgs.neovim-nightly;
|
||||||
wayland.windowManager.hyprland.extraConfig = ''
|
|
||||||
source=./common.conf
|
|
||||||
monitor = eDP-1,1920x1080,0,1.0
|
|
||||||
monitor = DP-3,1920x1200,1920x0,1.0
|
|
||||||
monitor = DP-4,1920x1080,3840x0,1.0,transform,1
|
|
||||||
|
|
||||||
windowrule = workspace name:chat, teams-for-linux
|
|
||||||
windowrule = workspace name:remote, Nxplayer.*
|
|
||||||
bind = ALT, R, moveworkspacetomonitor, name:remote current
|
|
||||||
bind = ALT, R, workspace, name:remote
|
|
||||||
bind = ALT SHIFT, R, moveworkspacetomonitor, name:remote current
|
|
||||||
bind = ALT SHIFT, R, movetoworkspace, name:remote
|
|
||||||
bindl=,switch:Lid Switch,exec,check-laptop-lid-state
|
|
||||||
'';
|
|
||||||
programs.waybar.settings = {
|
|
||||||
main = {
|
|
||||||
"output" = "!DP-4";
|
|
||||||
"wlr/workspaces" = {
|
|
||||||
"format-icons"."remote" = "";
|
|
||||||
"persistent_workspaces"."remote" = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./xfce.nix
|
||||||
|
./sxhkd.nix
|
||||||
|
];
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nitrogen
|
nitrogen
|
||||||
polybar
|
polybar
|
||||||
|
@ -36,6 +40,11 @@
|
||||||
"Bitwarden".desktop = "^7";
|
"Bitwarden".desktop = "^7";
|
||||||
"Nxplayer.bin".desktop = "^8";
|
"Nxplayer.bin".desktop = "^8";
|
||||||
};
|
};
|
||||||
extraConfig = builtins.readFile ./config/bspwm/startup.sh;
|
extraConfig = ''
|
||||||
|
polybar-msg cmd quit
|
||||||
|
echo "---" | tee -a /tmp/polybar.log
|
||||||
|
polybar 2>&1 | tee -a /tmp/polybar.log & disown
|
||||||
|
echo "Bars launched..."
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
nitrogen --restore
|
|
||||||
polybar-msg cmd quit
|
polybar-msg cmd quit
|
||||||
echo "---" | tee -a /tmp/polybar.log
|
echo "---" | tee -a /tmp/polybar.log
|
||||||
polybar 2>&1 | tee -a /tmp/polybar.log & disown
|
polybar 2>&1 | tee -a /tmp/polybar.log & disown
|
||||||
|
|
|
@ -117,8 +117,8 @@ menu=(
|
||||||
[ Reboot]="systemctl reboot"
|
[ Reboot]="systemctl reboot"
|
||||||
[ Suspend]="systemctl suspend"
|
[ Suspend]="systemctl suspend"
|
||||||
[ Hibernate]="systemctl hibernate"
|
[ Hibernate]="systemctl hibernate"
|
||||||
[ Lock]="hyprctl dispatch exec swaylock"
|
[ Lock]="xfce4-screensaver-command --lock"
|
||||||
[ Logout]="hyprctl dispatch exit"
|
[ Logout]=""
|
||||||
[ Cancel]=""
|
[ Cancel]=""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
# Terminal emulators
|
# Terminal emulators
|
||||||
"super + Return" = "kitty";
|
"super + Return" = "wezterm";
|
||||||
"super + shift + Return" = "xfce4-terminal --drop-down";
|
"super + shift + Return" = "xfce4-terminal --drop-down";
|
||||||
|
|
||||||
# Launcher
|
# Launcher
|
||||||
|
@ -16,10 +16,6 @@
|
||||||
"super + m" = "bspc desktop -l next";
|
"super + m" = "bspc desktop -l next";
|
||||||
"super + g" = "bspc node -s biggest";
|
"super + g" = "bspc node -s biggest";
|
||||||
|
|
||||||
# Custom scripts
|
|
||||||
"super + p" = "powermenu";
|
|
||||||
"super + e" = "power-profiles";
|
|
||||||
|
|
||||||
# State/Flags
|
# State/Flags
|
||||||
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
||||||
|
|
||||||
|
@ -44,9 +40,8 @@
|
||||||
|
|
||||||
# Shortcuts
|
# Shortcuts
|
||||||
"super + w" = "firefox";
|
"super + w" = "firefox";
|
||||||
"super + shift + f" = "thunar";
|
"super + e" = "thunar";
|
||||||
"super + f" = "kitty -e ranger";
|
"super + p" = "i3lock";
|
||||||
"super + n" = "thunar";
|
|
||||||
|
|
||||||
# Volume control keys
|
# Volume control keys
|
||||||
"XF86AudioMute" = "pamixer -t";
|
"XF86AudioMute" = "pamixer -t";
|
||||||
|
|
|
@ -1,19 +1,10 @@
|
||||||
{pkgs, ...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./bspwm.nix
|
|
||||||
./sxhkd.nix
|
|
||||||
./picom.nix
|
./picom.nix
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
./polybar.nix
|
./polybar.nix
|
||||||
];
|
];
|
||||||
home.packages = with pkgs; [
|
|
||||||
xfce.thunar
|
|
||||||
ranger
|
|
||||||
flameshot
|
|
||||||
power-profiles-daemon
|
|
||||||
i3lock-fancy
|
|
||||||
];
|
|
||||||
xfconf.settings = {
|
xfconf.settings = {
|
||||||
xfce4-session = {
|
xfce4-session = {
|
||||||
"general/LockCommand" = "i3lock-fancy";
|
"general/LockCommand" = "i3lock-fancy";
|
||||||
|
|
Loading…
Reference in a new issue