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;
|
||||
let scripts = import ./scripts pkgs config;
|
||||
in {
|
||||
home-manager.users.balsoft.wayland.windowManager.sway.config.bars = [{
|
||||
id = "top";
|
||||
home-manager.users.balsoft = {
|
||||
wayland.windowManager.sway.config.bars = [{
|
||||
id = "default";
|
||||
command = "true";
|
||||
colors = let
|
||||
thm = config.themes.colors;
|
||||
default = {
|
||||
@ -27,8 +29,7 @@ in {
|
||||
position = "bottom";
|
||||
workspaceNumbers = false;
|
||||
}];
|
||||
|
||||
home-manager.users.balsoft.xdg.configFile."i3blocks/config".text = let
|
||||
xdg.configFile."i3blocks/config".text = let
|
||||
scr = x: {
|
||||
name = x;
|
||||
command = scripts.${x};
|
||||
@ -51,4 +52,16 @@ in {
|
||||
]
|
||||
++ optional (config.deviceSpecific.devInfo ? bigScreen) (scrint "network" 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";
|
||||
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";
|
||||
"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";
|
||||
"--whole-window ${modifier}+button2" = "kill";
|
||||
} // builtins.listToAttrs (builtins.map (x: {
|
||||
@ -196,9 +201,6 @@ in {
|
||||
value = "move container to workspace ${builtins.elemAt x 1}";
|
||||
}) workspaces));
|
||||
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";
|
||||
workspaceAutoBackAndForth = true;
|
||||
|
Loading…
Reference in New Issue
Block a user