Update keybindings
This commit is contained in:
parent
c429e84e53
commit
96bd1de3e3
@ -3,8 +3,10 @@ with import ../../../support.nix { inherit pkgs config lib; };
|
|||||||
with lib;
|
with lib;
|
||||||
let scripts = import ./scripts pkgs config;
|
let scripts = import ./scripts pkgs config;
|
||||||
in {
|
in {
|
||||||
home-manager.users.balsoft.wayland.windowManager.sway.config.bars = [{
|
home-manager.users.balsoft = {
|
||||||
id = "top";
|
wayland.windowManager.sway.config.bars = [{
|
||||||
|
id = "default";
|
||||||
|
command = "true";
|
||||||
colors = let
|
colors = let
|
||||||
thm = config.themes.colors;
|
thm = config.themes.colors;
|
||||||
default = {
|
default = {
|
||||||
@ -27,8 +29,7 @@ in {
|
|||||||
position = "bottom";
|
position = "bottom";
|
||||||
workspaceNumbers = false;
|
workspaceNumbers = false;
|
||||||
}];
|
}];
|
||||||
|
xdg.configFile."i3blocks/config".text = let
|
||||||
home-manager.users.balsoft.xdg.configFile."i3blocks/config".text = let
|
|
||||||
scr = x: {
|
scr = x: {
|
||||||
name = x;
|
name = x;
|
||||||
command = scripts.${x};
|
command = scripts.${x};
|
||||||
@ -51,4 +52,16 @@ in {
|
|||||||
]
|
]
|
||||||
++ optional (config.deviceSpecific.devInfo ? bigScreen) (scrint "network" 1)
|
++ optional (config.deviceSpecific.devInfo ? bigScreen) (scrint "network" 1)
|
||||||
++ [ (scrint "bluetooth" 3) (scrint "connections" 3) (scr "df") (scr "date") (scrint "time" 1) ]);
|
++ [ (scrint "bluetooth" 3) (scrint "connections" 3) (scr "df") (scr "date") (scrint "time" 1) ]);
|
||||||
|
systemd.user.services.swaybar = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Start default bar";
|
||||||
|
};
|
||||||
|
|
||||||
|
Install.WantedBy = [ "sway-session.target" ];
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.sway}/bin/swaybar -b default";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -186,6 +186,11 @@ in {
|
|||||||
"XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
"XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||||
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";
|
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";
|
||||||
"XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
|
"XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
|
||||||
|
"XF86AudioLowerVolume" = "exec ${pkgs.pamixer}/bin/pamixer -d 2";
|
||||||
|
"XF86AudioRaiseVolume" = "exec ${pkgs.pamixer}/bin/pamixer -i 2";
|
||||||
|
"XF86AudioMute" = "exec ${pkgs.pamixer}/bin/pamixer -t";
|
||||||
|
"${modifier}+XF86AudioLowerVolume" = "exec ${pkgs.pamixer}/bin/pamixer -d 1";
|
||||||
|
"${modifier}+XF86AudioRaiseVolume" = "exec ${pkgs.pamixer}/bin/pamixer -i 1";
|
||||||
"button2" = "kill";
|
"button2" = "kill";
|
||||||
"--whole-window ${modifier}+button2" = "kill";
|
"--whole-window ${modifier}+button2" = "kill";
|
||||||
} // builtins.listToAttrs (builtins.map (x: {
|
} // builtins.listToAttrs (builtins.map (x: {
|
||||||
@ -196,9 +201,6 @@ in {
|
|||||||
value = "move container to workspace ${builtins.elemAt x 1}";
|
value = "move container to workspace ${builtins.elemAt x 1}";
|
||||||
}) workspaces));
|
}) workspaces));
|
||||||
keycodebindings = {
|
keycodebindings = {
|
||||||
"122" = "exec ${pkgs.pamixer}/bin/pamixer -d 2";
|
|
||||||
"123" = "exec ${pkgs.pamixer}/bin/pamixer -i 2";
|
|
||||||
"121" = "exec ${pkgs.pamixer}/bin/pamixer -t";
|
|
||||||
};
|
};
|
||||||
workspaceLayout = "tabbed";
|
workspaceLayout = "tabbed";
|
||||||
workspaceAutoBackAndForth = true;
|
workspaceAutoBackAndForth = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user