Skip to content

Commit 61c2dec

Browse files
author
Abdullah Khabir
committed
soft buttons
adding keybindings for soft buttons Brightness and Sound buttons being added
1 parent a3cc470 commit 61c2dec

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

dots/sway.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@
6464
"Mod4+f" = "fullscreen";
6565
"Mod4+Shift+space" = "floating toggle";
6666
"Mod4+space" = "focus mode_toggle";
67+
"Mod4+Shift+w" =
68+
"exec ${pkgs.google-chrome}/bin/google-chrome-stable";
69+
"Print" =
70+
"exec ${pkgs.wayshot}/bin/wayshot -f /tmp/foo.png; exec sleep 1; exec ${pkgs.wl-clipboard}/bin/wl-copy -t image/png < /tmp/foo.png"; # TODO: would like to change the program for screenshots
71+
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5";
72+
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5";
73+
"XF86AudioRaiseVolume" =
74+
"exec ${pkgs.pamixer}/bin/pamixer --allow-boost -i 5";
75+
"XF86AudioLowerVolume" =
76+
"exec ${pkgs.pamixer}/bin/pamixer --allow-boost -d 5";
77+
"XF86AudioMute" = "exec ${pkgs.pamixer}/bin/pamixer --toggle-mute";
6778
};
6879
up = "k";
6980
down = "j";
@@ -72,7 +83,8 @@
7283
#terminal = "alacritty";
7384
floating = {
7485
titlebar = false;
75-
criteria = [ { class = "feh"; } { class = "Mpv"; } { class = "meh"; } ];
86+
criteria =
87+
[ { class = "feh"; } { title = "Mpv"; } { class = "meh"; } ];
7688
modifier = "Mod4";
7789
};
7890
fonts = {
@@ -96,6 +108,9 @@
96108
}];
97109
menu = "${pkgs.wofi}/bin/wofi --insensitive --show drun,run";
98110
bars = [ ];
111+
output = {
112+
eDP-1 = { bg = "~/pix/wall/cuties/wallhaven-m9xe1m.jpg fill"; };
113+
};
99114
};
100115
};
101116
};

flake.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)