redid volume & some refactoring
This commit is contained in:
parent
18a1ff2f2e
commit
b0c590080c
4 changed files with 120 additions and 63 deletions
66
sway/sway.nix
Normal file
66
sway/sway.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
let
|
||||
mod = "Mod4";
|
||||
chvol = pkgs.writeShellScript "chvol"
|
||||
(builtins.readFile ./chvol.sh);
|
||||
|
||||
in {
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
config = {
|
||||
modifier = mod;
|
||||
terminal = "kitty";
|
||||
|
||||
# Waybar
|
||||
bars = [{
|
||||
command = "${pkgs.lib.getExe config.programs.waybar.package}";
|
||||
position = "top";
|
||||
fonts = config.wayland.windowManager.sway.config.fonts;
|
||||
}];
|
||||
|
||||
menu = "${pkgs.lib.getExe config.programs.rofi.package} -modes \"drun,run\" -show-icons -show drun";
|
||||
|
||||
keybindings = lib.mkOptionDefault ({
|
||||
# volume
|
||||
XF86AudioRaiseVolume = "exec bash ${chvol} sink 5";
|
||||
XF86AudioLowerVolume = "exec bash ${chvol} sink -5";
|
||||
XF86AudioMute = "exec bash ${chvol} sink mute";
|
||||
XF86AudioMicMute = "exec bash ${chvol} source mute";
|
||||
|
||||
# brightness
|
||||
# XF86MonBrightnessUp = "exec bash ${chbright} 1";
|
||||
# XF86MonBrightnessDown = "exec bash ${chbright} -1";
|
||||
|
||||
# media
|
||||
XF86AudioPlay = "exec playerctl play-pause";
|
||||
XF86AudioPrev = "exec playerctl previous";
|
||||
XF86AudioNext = "exec playerctl next";
|
||||
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# Waybar
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
# style = {};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
# theme = {};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue