home(gui): fix screenshot, customise bar, add gaps
This commit is contained in:
parent
fb59579563
commit
0207a7b471
1 changed files with 23 additions and 6 deletions
|
@ -1,27 +1,44 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
terminal = toString pkgs.alacritty;
|
||||
in mkIf config.passthrough.gui {
|
||||
, ... }: with lib; mkIf config.passthrough.gui {
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
swaynag.enable = true;
|
||||
config = {
|
||||
modifier = "Mod4";
|
||||
menu = "wofi -show drun -modi drun";
|
||||
|
||||
keybindings = let
|
||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||
in mkOptionDefault {
|
||||
XF86MonBrightnessUp = "light -A 5";
|
||||
XF86MonBrightnessDown = "light -U 5";
|
||||
|
||||
"Control+Alt+l" = "${pkgs.swaylock}/bin/swaylock -c 000000";
|
||||
"Control+Alt+l" = "exec ${pkgs.swaylock}/bin/swaylock -c 000000";
|
||||
"Print" = "exec ${pkgs.grim}/bin/grim - | ${pkgs.wl-clipboard}/bin/wl-copy";
|
||||
"${modifier}+Print" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.wl-clipboard}/bin/wl-copy";
|
||||
"${modifier}+q" = "exec google-chrome-stable";
|
||||
};
|
||||
|
||||
menu = "wofi -show drun -modi drun";
|
||||
bars = [ {
|
||||
mode = "dock";
|
||||
position = "bottom";
|
||||
workspaceButtons = true;
|
||||
workspaceNumbers = true;
|
||||
statusCommand = "${pkgs.i3status}/bin/i3status";
|
||||
fonts = {
|
||||
names = [ "monospace" ];
|
||||
size = 8.0;
|
||||
};
|
||||
trayOutput = "primary";
|
||||
# sets transparency
|
||||
colors.background = "00000000";
|
||||
} ];
|
||||
gaps.inner = 12;
|
||||
gaps.outer = 5;
|
||||
# dodge the status bar
|
||||
gaps.bottom = 0;
|
||||
|
||||
input."*".natural_scroll = "enabled";
|
||||
input."type:touchpad".tap = "enabled";
|
||||
output."*".bg = "${../../share/54345906_p0.jpg} fill";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue