home: sorting
This commit is contained in:
parent
1945d5aea6
commit
dd167477ed
5 changed files with 35 additions and 21 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
_: {
|
||||||
|
services.cliphist.enable = true;
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
../cliphist
|
||||||
../dunst
|
../dunst
|
||||||
../rofi
|
../rofi
|
||||||
../swayidle
|
../swayidle
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
_: {
|
||||||
|
programs.i3status-rust.enable = true;
|
||||||
|
}
|
|
@ -5,6 +5,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
../cliphist
|
||||||
../dunst
|
../dunst
|
||||||
../rofi
|
../rofi
|
||||||
../swayidle
|
../swayidle
|
||||||
|
@ -13,13 +14,6 @@
|
||||||
../waybar
|
../waybar
|
||||||
];
|
];
|
||||||
|
|
||||||
# https://wiki.archlinux.org/title/Fish#Start_X_at_login
|
|
||||||
programs.fish.loginShellInit = ''
|
|
||||||
if test -z "$DISPLAY" -a "$XDG_VTNR" = 1
|
|
||||||
exec sway
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
|
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
|
||||||
};
|
};
|
||||||
|
@ -47,19 +41,26 @@
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraOptions = ["--unsupported-gpu" "-D" "noscanout"];
|
extraOptions = ["--unsupported-gpu" "-Dnoscanout"];
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
systemd = {
|
systemd.enable = true;
|
||||||
enable = true;
|
systemd.xdgAutostart = true;
|
||||||
xdgAutostart = true;
|
|
||||||
};
|
|
||||||
config = {
|
config = {
|
||||||
### Default Applications
|
### Default Applications
|
||||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||||
menu = "${pkgs.rofi}/bin/rofi";
|
menu = "${pkgs.rofi}/bin/rofi";
|
||||||
|
|
||||||
### Visuals
|
### Visuals
|
||||||
bars = [];
|
#window.titlebar = false;
|
||||||
|
bars = [
|
||||||
|
{
|
||||||
|
command = "${pkgs.waybar}/bin/waybar";
|
||||||
|
}
|
||||||
|
#{
|
||||||
|
# statusCommand = "${lib.getExe pkgs.i3status-rust} $HOME/.config/i3status-rust/config-default.toml";
|
||||||
|
# position = "top";
|
||||||
|
#}
|
||||||
|
];
|
||||||
gaps = {
|
gaps = {
|
||||||
inner = 4;
|
inner = 4;
|
||||||
outer = 4;
|
outer = 4;
|
||||||
|
@ -85,16 +86,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
### Autostarts
|
### Autostarts
|
||||||
startup = [
|
startup = [];
|
||||||
{command = "${pkgs.waybar}/bin/waybar";}
|
|
||||||
{command = "${pkgs.wl-clipboard}/bin/wl-paste --watch cliphist store";}
|
|
||||||
];
|
|
||||||
|
|
||||||
### Keybinds
|
### Keybinds
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
modes = {};
|
modes = {};
|
||||||
keybindings = let
|
keybindings = let
|
||||||
inherit (config.wayland.windowManager.sway.config) modifier;
|
inherit (config.wayland.windowManager.sway.config) modifier;
|
||||||
|
inherit (config.wayland.windowManager.sway.config) terminal;
|
||||||
|
inherit (config.wayland.windowManager.sway.config) menu;
|
||||||
setBrightness = "/home/guanranwang/.local/bin/wrapped-brightnessctl";
|
setBrightness = "/home/guanranwang/.local/bin/wrapped-brightnessctl";
|
||||||
setVolume = "/home/guanranwang/.local/bin/wrapped-pamixer";
|
setVolume = "/home/guanranwang/.local/bin/wrapped-pamixer";
|
||||||
screenshot = "/home/guanranwang/.local/bin/screenshot";
|
screenshot = "/home/guanranwang/.local/bin/screenshot";
|
||||||
|
@ -137,14 +137,14 @@
|
||||||
|
|
||||||
### Execute other stuff
|
### Execute other stuff
|
||||||
# Launch applications
|
# Launch applications
|
||||||
"${modifier}+Return" = "exec ${config.wayland.windowManager.sway.config.terminal}";
|
"${modifier}+Return" = "exec ${terminal}";
|
||||||
"${modifier}+w" = "exec ${pkgs.xdg-utils}/bin/xdg-open http:";
|
"${modifier}+w" = "exec ${pkgs.xdg-utils}/bin/xdg-open http:";
|
||||||
"${modifier}+e" = "exec ${pkgs.xdg-utils}/bin/xdg-open ~";
|
"${modifier}+e" = "exec ${pkgs.xdg-utils}/bin/xdg-open ~";
|
||||||
|
|
||||||
# Rofi
|
# Rofi
|
||||||
"${modifier}+d" = "exec ${config.wayland.windowManager.sway.config.menu} -show drun -show-icons -icon-theme ${config.gtk.iconTheme.name}";
|
"${modifier}+d" = "exec ${menu} -show drun -show-icons -icon-theme ${config.gtk.iconTheme.name}";
|
||||||
"${modifier}+Shift+d" = "exec ${pkgs.cliphist}/bin/cliphist list | ${config.wayland.windowManager.sway.config.menu} -dmenu | ${pkgs.cliphist}/bin/cliphist decode | ${pkgs.wl-clipboard}/bin/wl-copy";
|
"${modifier}+Shift+d" = "exec ${pkgs.cliphist}/bin/cliphist list | ${menu} -dmenu | ${pkgs.cliphist}/bin/cliphist decode | ${pkgs.wl-clipboard}/bin/wl-copy";
|
||||||
"${modifier}+Shift+l" = "exec ${config.wayland.windowManager.sway.config.menu} -modi \"power-menu:rofi-power-menu --confirm=reboot/shutdown\" -show power-menu";
|
"${modifier}+Shift+l" = ''exec ${menu} -modi "power-menu:rofi-power-menu --confirm=reboot/shutdown" -show power-menu'';
|
||||||
|
|
||||||
# Screenshot
|
# Screenshot
|
||||||
"${modifier}+Shift+s" = "exec ${screenshot} region";
|
"${modifier}+Shift+s" = "exec ${screenshot} region";
|
||||||
|
|
|
@ -45,4 +45,11 @@
|
||||||
"irssi"
|
"irssi"
|
||||||
"mumble"
|
"mumble"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# https://wiki.archlinux.org/title/Fish#Start_X_at_login
|
||||||
|
programs.fish.loginShellInit = ''
|
||||||
|
if test -z "$DISPLAY" -a "$XDG_VTNR" = 1
|
||||||
|
exec sway
|
||||||
|
end
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue