removed wallpapers. moved to swaylock-fancy

This commit is contained in:
kat witch 2021-08-19 00:57:36 +01:00
parent 2dbc1ac464
commit 640f5cb7a8
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
13 changed files with 287 additions and 416 deletions

View file

@ -3,46 +3,16 @@
with lib; with lib;
{ {
imports = [ ./swayidle.nix ]; wayland.windowManager.sway.config = {
output =
wayland.windowManager.sway = {
config =
let let
lockCommand = "swaylock -i VGA-1:${builtins.elemAt config.kw.wallpapers 0} -s fill"; middle = {
cfg = config.wayland.windowManager.sway.config; res = "1280x1024@75Hz";
pos = "1920 0";
};
in in
{ {
#startup = [{ command = "${pkgs.ckb-next}/bin/ckb-next -b"; }]; "VGA-1" = middle;
output =
let
middle = {
res = "1280x1024@75Hz";
pos = "1920 0";
};
in
{
"VGA-1" = middle;
};
keybindings = {
"${cfg.modifier}+x" = "exec ${lockCommand}";
};
modes = {
"System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown" =
{
"l" = "exec ${lockCommand}, mode default";
"e" = "exec swaymsg exit, mode default";
"s" = "exec systemctl suspend, mode default";
"h" = "exec systemctl hibernate, mode default";
"r" = "exec systemctl reboot, mode default";
"Shift+s" = "exec systemctl shutdown, mode default";
"Return" = "mode default";
"Escape" = "mode default";
};
};
};
}; };
} };
}

View file

@ -1,24 +0,0 @@
{ config, pkgs, lib, ... }:
{
systemd.user.services.swayidle = {
Unit = {
Description = "swayidle";
Documentation = [ "man:swayidle(1)" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.swayidle}/bin/swayidle -w \
timeout 300 '${pkgs.swaylock}/bin/swaylock -f -i VGA-1:${builtins.elemAt config.kw.wallpapers 0} \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '${pkgs.swaylock}/bin/swaylock -f -i VGA-1:${builtins.elemAt config.kw.wallpapers 0}'
'';
RestartSec = 3;
Restart = "always";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
}

View file

@ -3,81 +3,53 @@
with lib; with lib;
{ {
imports = [ ./swayidle.nix ];
wayland.windowManager.sway = { wayland.windowManager.sway = {
config = config = {
let output = let
lockCommand = "swaylock -i HDMI-A-1:${builtins.elemAt config.kw.wallpapers 0} -i DP-1:${builtins.elemAt config.kw.wallpapers 1} -i DVI-D-1:${builtins.elemAt config.kw.wallpapers 2} -s fill"; left = {
cfg = config.wayland.windowManager.sway.config; res = "1920x1080";
pos = "0 0";
};
middle = {
res = "1920x1200";
pos = "1920 0";
};
right = {
res = "1920x1080";
pos = "3840 0";
};
in in
{ {
#startup = [{ command = "${pkgs.ckb-next}/bin/ckb-next -b"; }]; "DP-1" = right;
"DVI-D-1" = middle;
"HDMI-A-1" = left;
};
output = input = {
let "5426:103:Razer_Razer_Naga_Trinity" = {
left = { accel_profile = "adaptive";
res = "1920x1080"; pointer_accel = "-0.5";
pos = "0 0";
};
middle = {
res = "1920x1200";
pos = "1920 0";
};
right = {
res = "1920x1080";
pos = "3840 0";
};
in
{
"DP-1" = right;
"DVI-D-1" = middle;
"HDMI-A-1" = left;
};
keybindings = {
"${cfg.modifier}+x" = "exec ${lockCommand}";
}; };
"5824:1503:screenstub-tablet" = { events = "disabled"; };
modes = { "5824:1503:screenstub-mouse" = { events = "disabled"; };
"System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown" = "5824:1503:screenstub-kbd" = { events = "disabled"; };
{ "1386:215:Wacom_BambooPT_2FG_Small_Pen" = {
"l" = "exec ${lockCommand}, mode default"; map_to_output = "HDMI-A-1";
"e" = "exec swaymsg exit, mode default";
"s" = "exec systemctl suspend, mode default";
"h" = "exec systemctl hibernate, mode default";
"r" = "exec systemctl reboot, mode default";
"Shift+s" = "exec systemctl shutdown, mode default";
"Return" = "mode default";
"Escape" = "mode default";
};
}; };
"1386:215:Wacom_BambooPT_2FG_Small_Finger" = {
input = { natural_scroll = "enabled";
"5426:103:Razer_Razer_Naga_Trinity" = { middle_emulation = "enabled";
accel_profile = "adaptive"; tap = "enabled";
pointer_accel = "-0.5"; dwt = "enabled";
}; accel_profile = "flat";
"5824:1503:screenstub-tablet" = { events = "disabled"; }; pointer_accel = "0.05";
"5824:1503:screenstub-mouse" = { events = "disabled"; };
"5824:1503:screenstub-kbd" = { events = "disabled"; };
"1386:215:Wacom_BambooPT_2FG_Small_Pen" = {
map_to_output = "HDMI-A-1";
};
"1386:215:Wacom_BambooPT_2FG_Small_Finger" = {
natural_scroll = "enabled";
middle_emulation = "enabled";
tap = "enabled";
dwt = "enabled";
accel_profile = "flat";
pointer_accel = "0.05";
};
}; };
}; };
};
extraConfig = '' extraConfig = ''
workspace "1" output "DP-1" workspace "1" output "DP-1"
workspace "11:F1" output "DVI-1" workspace "11:F1" output "DVI-1"
workspace "12:F2" output "HDMI-A-1" workspace "12:F2" output "HDMI-A-1"
''; '';
}; };
} }

View file

@ -1,26 +0,0 @@
{ config, pkgs, lib, ... }:
with lib;
{
systemd.user.services.swayidle = {
Unit = {
Description = "swayidle";
Documentation = [ "man:swayidle(1)" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.swayidle}/bin/swayidle -w \
timeout 300 '${pkgs.swaylock}/bin/swaylock -f -i HDMI-A-1:${builtins.elemAt config.kw.wallpapers 0} -i DP-1:${builtins.elemAt config.kw.wallpapers 1} -i DVI-D-1:${builtins.elemAt config.kw.wallpapers 2}' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '${pkgs.swaylock}/bin/swaylock -f -i HDMI-A-1:${builtins.elemAt config.kw.wallpapers 0} -i DP-1:${builtins.elemAt config.kw.wallpapers 1} -i DVI-D-1:${builtins.elemAt config.kw.wallpapers 2}'
'';
RestartSec = 3;
Restart = "always";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
}

View file

@ -3,49 +3,23 @@
with lib; with lib;
{ {
imports = [ ./swayidle.nix ]; wayland.windowManager.sway.config = {
output = let
wayland.windowManager.sway.config = laptop = {
let res = "1920x1080";
lockCommand = "swaylock -i eDP-1:${builtins.elemAt config.kw.wallpapers 0} -s fill"; pos = "0 0";
cfg = config.wayland.windowManager.sway.config; };
in in
{ { "eDP-1" = laptop; };
output =
let
laptop = {
res = "1920x1080";
pos = "0 0";
};
in
{ "eDP-1" = laptop; };
keybindings = { input = {
"${cfg.modifier}+x" = "exec ${lockCommand}"; "1739:33362:Synaptics_TM3336-002" = {
}; dwt = "enabled";
tap = "enabled";
modes = { natural_scroll = "enabled";
"System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown" = middle_emulation = "enabled";
{ click_method = "clickfinger";
"l" = "exec ${lockCommand}, mode default";
"e" = "exec swaymsg exit, mode default";
"s" = "exec systemctl suspend, mode default";
"h" = "exec systemctl hibernate, mode default";
"r" = "exec systemctl reboot, mode default";
"Shift+s" = "exec systemctl shutdown, mode default";
"Return" = "mode default";
"Escape" = "mode default";
};
};
input = {
"1739:33362:Synaptics_TM3336-002" = {
dwt = "enabled";
tap = "enabled";
natural_scroll = "enabled";
middle_emulation = "enabled";
click_method = "clickfinger";
};
}; };
}; };
};
} }

View file

@ -1,26 +0,0 @@
{ config, pkgs, lib, ... }:
with lib;
{
systemd.user.services.swayidle = {
Unit = {
Description = "swayidle";
Documentation = [ "man:swayidle(1)" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.swayidle}/bin/swayidle -w \
timeout 300 '${pkgs.swaylock}/bin/swaylock -f -i eDP-1:${builtins.elemAt config.kw.wallpapers 0} \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '${pkgs.swaylock}/bin/swaylock -f -i eDP-1:${builtins.elemAt config.kw.wallpapers 0}'
'';
RestartSec = 3;
Restart = "always";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
}

View file

@ -9,10 +9,6 @@ with lib;
let cfg = config.kw; in { let cfg = config.kw; in {
options.kw = { options.kw = {
wallpapers = mkOption {
type = types.nullOr (types.listOf types.path);
default = [ ../../users/kat/sway/wallpapers/left.jpg ../../users/kat/sway/wallpapers/main.png ../../users/kat/sway/wallpapers/right.jpg ];
};
hexColors = mkOption { hexColors = mkOption {
type = types.attrsOf types.str; type = types.attrsOf types.str;
}; };

View file

@ -5,6 +5,6 @@ with lib;
{ {
programs.sway = { programs.sway = {
enable = any (user: user.wayland.windowManager.sway.enable) (attrValues config.home-manager.users); enable = any (user: user.wayland.windowManager.sway.enable) (attrValues config.home-manager.users);
extraPackages = with pkgs; mkForce [ xwayland swaylock swayidle ]; extraPackages = with pkgs; mkForce [ xwayland swaylock swayidle swaylock-fancy wmctrl ];
}; };
} }

View file

@ -6,6 +6,7 @@ let
footwrap = pkgs.writeShellScriptBin "footwrap" '' footwrap = pkgs.writeShellScriptBin "footwrap" ''
exec foot "$2" exec foot "$2"
''; '';
lockCommand = "${pkgs.swaylock-fancy}/bin/swaylock-fancy -d -t ''";
in in
{ {
home.sessionVariables = { home.sessionVariables = {
@ -19,7 +20,6 @@ in
default partial alphanumeric_keys default partial alphanumeric_keys
xkb_symbols "basic" { xkb_symbols "basic" {
include "us(altgr-intl)" include "us(altgr-intl)"
include "level3(caps_switch)"
name[Group1] = "English (US, international with pound sign)"; name[Group1] = "English (US, international with pound sign)";
key <AD03> { [ e, E, EuroSign, cent ] }; key <AD03> { [ e, E, EuroSign, cent ] };
key <AE03> { [ 3, numbersign, sterling] }; key <AE03> { [ 3, numbersign, sterling] };
@ -65,12 +65,32 @@ in
} }
''; '';
kw.wallpapers = [ ./wallpapers/left.jpg ./wallpapers/main.png ./wallpapers/right.jpg ]; home.packages = with pkgs; [ grim slurp swaylock-fancy wl-clipboard jq quintom-cursor-theme gsettings-desktop-schemas glib wofi wmctrl ];
home.packages = with pkgs; [ grim slurp wl-clipboard jq quintom-cursor-theme gsettings-desktop-schemas glib wofi ];
services.i3gopher = { enable = true; }; services.i3gopher = { enable = true; };
systemd.user.services.swayidle = {
Unit = {
Description = "swayidle";
Documentation = [ "man:swayidle(1)" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.swayidle}/bin/swayidle -w \
timeout 300 '${lockCommand} \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '${lockCommand}'
'';
RestartSec = 3;
Restart = "always";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
programs.zsh.profileExtra = '' programs.zsh.profileExtra = ''
# If running from tty1 start sway # If running from tty1 start sway
if [ "$(tty)" = "/dev/tty1" ]; then if [ "$(tty)" = "/dev/tty1" ]; then
@ -96,102 +116,117 @@ in
"${cfg.modifier}+${key}" = "workspace number ${workspace}"; "${cfg.modifier}+${key}" = "workspace number ${workspace}";
"${cfg.modifier}+shift+${key}" = "${cfg.modifier}+shift+${key}" =
"move container to workspace number ${workspace}"; "move container to workspace number ${workspace}";
}; };
workspaceBindings = map (v: bindWorkspace v "${v}:${v}") [ workspaceBindings = map (v: bindWorkspace v "${v}:${v}") [
"1" "1"
"2" "2"
"3" "3"
"4" "4"
"5" "5"
"6" "6"
"7" "7"
"8" "8"
"9" "9"
] ++ [ (bindWorkspace "0" "10:10") ] ] ++ [ (bindWorkspace "0" "10:10") ]
++ lib.imap1 (i: v: bindWorkspace v "${toString (10 + i)}:${v}") [ ++ lib.imap1 (i: v: bindWorkspace v "${toString (10 + i)}:${v}") [
"F1" "F1"
"F2" "F2"
"F3" "F3"
"F4" "F4"
"F5" "F5"
"F6" "F6"
"F7" "F7"
"F8" "F8"
"F9" "F9"
"F10" "F10"
"F11" "F11"
"F12" "F12"
]; ];
workspaceBindings' = map (lib.mapAttrsToList bindsym) workspaceBindings; workspaceBindings' = map (lib.mapAttrsToList bindsym) workspaceBindings;
workspaceBindingsStr = workspaceBindingsStr =
lib.concatStringsSep "\n" (lib.flatten workspaceBindings'); lib.concatStringsSep "\n" (lib.flatten workspaceBindings');
in in
{ {
enable = true; enable = true;
config = config =
let let
pactl = "${config.home.nixosConfig.hardware.pulseaudio.package or pkgs.pulseaudio}/bin/pactl"; pactl = "${config.home.nixosConfig.hardware.pulseaudio.package or pkgs.pulseaudio}/bin/pactl";
dmenu = "${pkgs.wofi}/bin/wofi -idbt ${footwrap}/bin/footwrap -s ~/.config/wofi/wofi.css -p '' -W 25%"; dmenu = "${pkgs.wofi}/bin/wofi -idbt ${footwrap}/bin/footwrap -s ~/.config/wofi/wofi.css -p '' -W 25%";
in in
{ {
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
input = { modes = {
"*" = { "System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown" =
xkb_layout = "us_gbp_map"; {
xkb_options = "compose:rctrl,ctrl:nocaps"; "l" = "exec ${lockCommand}, mode default";
}; "e" = "exec swaymsg exit, mode default";
}; "s" = "exec systemctl suspend, mode default";
fonts = { "h" = "exec systemctl hibernate, mode default";
names = [ config.kw.font.name ]; "r" = "exec systemctl reboot, mode default";
style = "Medium"; "Shift+s" = "exec systemctl shutdown, mode default";
size = config.kw.font.size; "Return" = "mode default";
}; "Escape" = "mode default";
terminal = "${pkgs.foot}/bin/foot"; };
menu = };
"${pkgs.j4-dmenu-desktop}/bin/j4-dmenu-desktop --no-generic --dmenu=\"${dmenu}\" --term='${footwrap}/bin/footwrap'"; bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
modifier = "Mod4";
assigns = { "12:F2" = [{ class = "screenstub"; }]; }; input = {
startup = [ "*" = {
{ xkb_layout = "us_gbp_map";
command = "gsettings set org.gnome.desktop.interface cursor-theme 'Quintom_Snow'"; xkb_options = "compose:rctrl,ctrl:nocaps";
} };
{ };
command = "systemctl --user restart mako"; fonts = {
always = true; names = [ config.kw.font.name ];
} style = "Medium";
{ size = config.kw.font.size;
command = "systemctl --user restart konawall.service"; };
always = true; terminal = "${pkgs.foot}/bin/foot";
} menu =
"${pkgs.j4-dmenu-desktop}/bin/j4-dmenu-desktop --no-generic --dmenu=\"${dmenu}\" --term='${footwrap}/bin/footwrap'";
modifier = "Mod4";
assigns = { "12:F2" = [{ class = "screenstub"; }]; };
startup = [
{
command = "gsettings set org.gnome.desktop.interface cursor-theme 'Quintom_Snow'";
}
{
command = "systemctl --user restart mako";
always = true;
}
{
command = "systemctl --user restart konawall.service";
always = true;
}
]; ];
modes.resize = { modes.resize = {
"a" = "resize shrink width 4 px or 4 ppt"; "a" = "resize shrink width 4 px or 4 ppt";
"s" = "resize shrink height 4 px or 4 ppt"; "s" = "resize shrink height 4 px or 4 ppt";
"w" = "resize grow height 4 px or 4 ppt"; "w" = "resize grow height 4 px or 4 ppt";
"d" = "resize grow width 4 px or 4 ppt"; "d" = "resize grow width 4 px or 4 ppt";
"Left" = "resize shrink width 4 px or 4 ppt"; "Left" = "resize shrink width 4 px or 4 ppt";
"Down" = "resize shrink height 4 px or 4 ppt"; "Down" = "resize shrink height 4 px or 4 ppt";
"Up" = "resize grow height 4 px or 4 ppt"; "Up" = "resize grow height 4 px or 4 ppt";
"Right" = "resize grow width 4 px or 4 ppt"; "Right" = "resize grow width 4 px or 4 ppt";
Return = ''mode "default"''; Return = ''mode "default"'';
Escape = ''mode "default"''; Escape = ''mode "default"'';
"${cfg.modifier}+z" = ''mode "default"''; "${cfg.modifier}+z" = ''mode "default"'';
}; };
window = { window = {
border = 1; border = 1;
titlebar = false; titlebar = false;
}; };
floating = { floating = {
border = 1; border = 1;
titlebar = false; titlebar = false;
}; };
keybindings = { keybindings = {
"${cfg.modifier}+Return" = "exec ${cfg.terminal}"; "${cfg.modifier}+Return" = "exec ${cfg.terminal}";
"${cfg.modifier}+x" = "exec ${lockCommand}";
# focus windows - regular # focus windows - regular
"${cfg.modifier}+Left" = "focus left"; "${cfg.modifier}+Left" = "focus left";
@ -278,22 +313,22 @@ in
# screenshots - upload # screenshots - upload
"${cfg.modifier}+Print" = "${cfg.modifier}+Print" =
"exec ${pkgs.sway-scrot}/bin/sway-scrot --notify upload screen"; "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify upload screen";
"${cfg.modifier}+Shift+Print" = "${cfg.modifier}+Shift+Print" =
"exec ${pkgs.sway-scrot}/bin/sway-scrot --notify upload area"; "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify upload area";
"${cfg.modifier}+Mod1+Print" = "${cfg.modifier}+Mod1+Print" =
"exec ${pkgs.sway-scrot}/bin/sway-scrot --notify upload window"; "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify upload window";
"${cfg.modifier}+Control+Print" = "${cfg.modifier}+Control+Print" =
"exec ${pkgs.sway-scrot}/bin/sway-scrot --notify upload output"; "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify upload output";
# screenshots - clipboard # screenshots - clipboard
"Print" = "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify copys screen"; "Print" = "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify copys screen";
"Shift+Print" = "Shift+Print" =
"exec ${pkgs.sway-scrot}/bin/sway-scrot --notify copys area"; "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify copys area";
"Mod1+Print" = "Mod1+Print" =
"exec ${pkgs.sway-scrot}/bin/sway-scrot --notify copys window"; "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify copys window";
"Control+Print" = "Control+Print" =
"exec ${pkgs.sway-scrot}/bin/sway-scrot --notify copys output"; "exec ${pkgs.sway-scrot}/bin/sway-scrot --notify copys output";
# layout handling # layout handling
"${cfg.modifier}+b" = "splith"; "${cfg.modifier}+b" = "splith";
@ -310,86 +345,86 @@ in
# mode triggers # mode triggers
"${cfg.modifier}+Shift+r" = "mode resize"; "${cfg.modifier}+Shift+r" = "mode resize";
"${cfg.modifier}+Delete" = '' "${cfg.modifier}+Delete" = ''
mode "System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown"''; mode "System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown"'';
}; };
colors = { colors = {
focused = { focused = {
border = base16.base01; border = base16.base01;
background = base16.base0D; background = base16.base0D;
text = base16.base07; text = base16.base07;
indicator = base16.base0D; indicator = base16.base0D;
childBorder = base16.base0D; childBorder = base16.base0D;
}; };
focusedInactive = { focusedInactive = {
border = base16.base02; border = base16.base02;
background = base16.base04; background = base16.base04;
text = base16.base00; text = base16.base00;
indicator = base16.base04; indicator = base16.base04;
childBorder = base16.base04; childBorder = base16.base04;
}; };
unfocused = { unfocused = {
border = base16.base01; border = base16.base01;
background = base16.base02; background = base16.base02;
text = base16.base06; text = base16.base06;
indicator = base16.base02; indicator = base16.base02;
childBorder = base16.base02; childBorder = base16.base02;
}; };
urgent = { urgent = {
border = base16.base03; border = base16.base03;
background = base16.base08; background = base16.base08;
text = base16.base00; text = base16.base00;
indicator = base16.base08; indicator = base16.base08;
childBorder = base16.base08; childBorder = base16.base08;
}; };
}; };
}; };
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
extraConfig = '' extraConfig = ''
hide_edge_borders smart_no_gaps hide_edge_borders smart_no_gaps
smart_borders no_gaps smart_borders no_gaps
title_align center title_align center
seat seat0 xcursor_theme Quintom_Snow 20 seat seat0 xcursor_theme Quintom_Snow 20
workspace_auto_back_and_forth yes workspace_auto_back_and_forth yes
set $mode_gaps Gaps: (o) outer, (i) inner set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym ${cfg.modifier}+Shift+g mode "$mode_gaps" bindsym ${cfg.modifier}+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym equal gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym equal gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
${workspaceBindingsStr}
'';
};
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
} }
mode "$mode_gaps_inner" {
bindsym equal gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym equal gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
${workspaceBindingsStr}
'';
};
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

View file

@ -41,10 +41,10 @@
"homepage": "https://nix-community.github.io/home-manager/", "homepage": "https://nix-community.github.io/home-manager/",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "72394f6d6b1cee26021c3e319fa249122ad33d82", "rev": "a5c609b4b1cd4e1381ac8ea1b7d5b0792ebde0a3",
"sha256": "1hnkc81p50qq3zmk75bb132ks9w62mssy76xf2xamqlm6y0k0425", "sha256": "0q8iq96sfrr8vxw36208bx2nbqx3r0i9s5hh75dxd5psc6p84vl4",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nix-community/home-manager/archive/72394f6d6b1cee26021c3e319fa249122ad33d82.tar.gz", "url": "https://github.com/nix-community/home-manager/archive/a5c609b4b1cd4e1381ac8ea1b7d5b0792ebde0a3.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"katexprs": { "katexprs": {
@ -87,10 +87,10 @@
"homepage": "", "homepage": "",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "23485f23ff8536592b5178a5d244f84da770bc87", "rev": "2435ea48c3b295d9cd490535730bb13ab8cfd8a5",
"sha256": "1x1r93za9fmaqa31d32whxns87x8iwl7bjfl52jwl79zmxg8pqxc", "sha256": "02ph4di27alkykj4dcr4zfp2ply2zs4wh3gwpz5cs90l0ycy0fxk",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nixos/nixpkgs/archive/23485f23ff8536592b5178a5d244f84da770bc87.tar.gz", "url": "https://github.com/nixos/nixpkgs/archive/2435ea48c3b295d9cd490535730bb13ab8cfd8a5.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nur": { "nur": {
@ -99,10 +99,10 @@
"homepage": "https://nur.nix-community.org/", "homepage": "https://nur.nix-community.org/",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "500f9f4002243ac3d7478348495d830abb6721e0", "rev": "a36f8ccb369df230fc75adc019ed73876c6eb06d",
"sha256": "1plvb4byi2y4l6l4v501hb45s1kqhnz37raba476q4zkv82x6qi7", "sha256": "1m5csfr01j5s9q8d5azysjizwxv4lxggpyy4p5cn77ygcpxy2pw3",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nix-community/NUR/archive/500f9f4002243ac3d7478348495d830abb6721e0.tar.gz", "url": "https://github.com/nix-community/NUR/archive/a36f8ccb369df230fc75adc019ed73876c6eb06d.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"tf-nix": { "tf-nix": {
@ -111,10 +111,10 @@
"homepage": null, "homepage": null,
"owner": "arcnmx", "owner": "arcnmx",
"repo": "tf-nix", "repo": "tf-nix",
"rev": "389de5b7a2843eea2208b056ed6a36d73260f2b0", "rev": "a1eb4c4203d13e644b8e7336777b354fe499c3fe",
"sha256": "0p2z5w61g404sin2pb6vwq83dm1d1kkrfpwwc7q2jc7zgpwb3plv", "sha256": "00p2njqxa5wld3q1qqw80kxm5bprb3k7jhpqmv9rf5bbixgd4zdp",
"type": "tarball", "type": "tarball",
"url": "https://github.com/arcnmx/tf-nix/archive/389de5b7a2843eea2208b056ed6a36d73260f2b0.tar.gz", "url": "https://github.com/arcnmx/tf-nix/archive/a1eb4c4203d13e644b8e7336777b354fe499c3fe.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
} }
} }