home: modify sway
config
- autostarts: - added udiskie - keybinds: - disabled `resize` mode - added "screenshot + edit" keybind - visuals: - re-added titlebar - misc: - fixed default workspace being workspace 10
This commit is contained in:
parent
d0ffeda259
commit
fd7de0a940
1 changed files with 30 additions and 23 deletions
|
@ -31,6 +31,7 @@
|
||||||
swaylock-effects
|
swaylock-effects
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
|
swappy
|
||||||
udiskie
|
udiskie
|
||||||
swww
|
swww
|
||||||
mpvpaper
|
mpvpaper
|
||||||
|
@ -267,8 +268,19 @@
|
||||||
xdgAutostart = true;
|
xdgAutostart = true;
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
### Default Applications
|
||||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||||
bars = [ ];
|
menu = "${pkgs.rofi}/bin/rofi";
|
||||||
|
|
||||||
|
### Visuals
|
||||||
|
bars = [];
|
||||||
|
gaps = {
|
||||||
|
inner = 4;
|
||||||
|
outer = 4;
|
||||||
|
#smartGaps = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
### Inputs
|
||||||
input = {
|
input = {
|
||||||
"*" = {
|
"*" = {
|
||||||
accel_profile = "flat";
|
accel_profile = "flat";
|
||||||
|
@ -280,29 +292,25 @@
|
||||||
dwt = "disabled";
|
dwt = "disabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
### Autostarts
|
||||||
startup = [
|
startup = [
|
||||||
{ command = "${pkgs.swww}/bin/swww init"; }
|
{ command = "${pkgs.swww}/bin/swww init"; }
|
||||||
{ command = "${pkgs.waybar}/bin/waybar"; }
|
{ command = "${pkgs.waybar}/bin/waybar"; }
|
||||||
{ command = "${pkgs.wl-clipboard}/bin/wl-paste --watch cliphist store"; }
|
{ command = "${pkgs.wl-clipboard}/bin/wl-paste --watch cliphist store"; }
|
||||||
#{ command = "${pkgs.alacritty}/bin/alacritty"; }
|
{ command = "${pkgs.udiskie}/bin/udiskie --smart-tray"; }
|
||||||
#{ command = "${pkgs.fcitx5}/bin/fcitx5 -d"; }
|
|
||||||
#{ command = "fcitx5 -d"; }
|
|
||||||
];
|
];
|
||||||
gaps = {
|
|
||||||
inner = 4;
|
### Keybinds
|
||||||
outer = 4;
|
defaultWorkspace = "workspace number 1";
|
||||||
#smartGaps = true;
|
|
||||||
};
|
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
|
modes = {};
|
||||||
keybindings =
|
keybindings =
|
||||||
let
|
let
|
||||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||||
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/wrapped-grim";
|
screenshot = "/home/guanranwang/.local/bin/wrapped-grim";
|
||||||
terminal = "exec ${pkgs.alacritty}/bin/alacritty";
|
|
||||||
browser = "exec ${pkgs.xdg-utils}/bin/xdg-open http:";
|
|
||||||
fileManager = "exec ${pkgs.xdg-utils}/bin/xdg-open ~";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
### Sway itself
|
### Sway itself
|
||||||
|
@ -345,18 +353,20 @@
|
||||||
|
|
||||||
### Execute other stuff
|
### Execute other stuff
|
||||||
# Launch applications
|
# Launch applications
|
||||||
"${modifier}+Return" = terminal;
|
"${modifier}+Return" = "exec ${config.wayland.windowManager.sway.config.terminal}";
|
||||||
"${modifier}+w" = browser;
|
"${modifier}+w" = "exec ${pkgs.xdg-utils}/bin/xdg-open http:";
|
||||||
"${modifier}+e" = fileManager;
|
"${modifier}+e" = "exec ${pkgs.xdg-utils}/bin/xdg-open ~";
|
||||||
|
|
||||||
# Rofi
|
# Rofi
|
||||||
"${modifier}+d" = "exec ${pkgs.rofi}/bin/rofi -show drun -show-icons -icon-theme ${config.gtk.iconTheme.name}";
|
"${modifier}+d" = "exec ${config.wayland.windowManager.sway.config.menu} -show drun -show-icons -icon-theme ${config.gtk.iconTheme.name}";
|
||||||
"${modifier}+Shift+d" = "exec ${pkgs.cliphist}/bin/cliphist list | ${pkgs.rofi}/bin/rofi -dmenu | ${pkgs.cliphist}/bin/cliphist decode | ${pkgs.wl-clipboard}/bin/wl-copy";
|
"${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+l" = "exec ${pkgs.rofi}/bin/rofi -modi \"power-menu:rofi-power-menu --confirm=reboot/shutdown\" -show power-menu";
|
"${modifier}+Shift+l" = "exec ${config.wayland.windowManager.sway.config.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";
|
||||||
|
"${modifier}+Control+Shift+s" = "exec ${screenshot} region edit";
|
||||||
"Print" = "exec ${screenshot} fullscreen";
|
"Print" = "exec ${screenshot} fullscreen";
|
||||||
|
"Print+Control" = "exec ${screenshot} fullscreen edit";
|
||||||
|
|
||||||
# Fn keys
|
# Fn keys
|
||||||
"XF86MonBrightnessUp" = "exec ${setBrightness} up";
|
"XF86MonBrightnessUp" = "exec ${setBrightness} up";
|
||||||
|
@ -372,9 +382,6 @@
|
||||||
"XF86AudioMedia" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
"XF86AudioMedia" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
|
||||||
default_border pixel 2
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue