This commit is contained in:
2024-10-29 12:55:21 -04:00
parent e789fc824d
commit 9e85e4fa22
7 changed files with 102 additions and 78 deletions

View File

@@ -21,7 +21,7 @@
};
spawn-at-startup = [
# waybar
# waybar (status bar)
{ command = [ "${pkgs.waybar}/bin/waybar" ]; }
# swaybg works on more than just sway (sets a wallpaper)
@@ -47,18 +47,27 @@
window-rules = [
{ draw-border-with-background = false; }
{
geometry-corner-radius = {
top-left = 10.0;
top-right = 10.0;
bottom-right = 10.0;
bottom-left = 10.0;
};
geometry-corner-radius =
let
radius = 10.0;
in
{
top-left = radius;
top-right = radius;
bottom-right = radius;
bottom-left = radius;
};
}
{ clip-to-geometry = true; }
];
# https://github.com/sodiboo/niri-flake/issues/591
# switch-events = with config.lib.niri.actions; {
# "lid-close" = spawn [ "${pkgs.swaylock}/bin/swaylock"];
# };
binds = with config.lib.niri.actions; {
# application launcher
# Application launcher
"Mod+Space".action = spawn [
"${pkgs.rofi-wayland}/bin/rofi"
"-show"
@@ -82,37 +91,38 @@
"-u"
"up"
];
"XF86AudioLowerVolume".action = spawn [
"${pkgs.avizo}/bin/volumectl"
"-u"
"down"
];
"XF86AudioMute".action = spawn [
"${pkgs.avizo}/bin/volumectl"
"toggle-mute"
];
"XF86AudioMicMute".action = spawn [
"${pkgs.avizo}/bin/volumectl"
"-m"
"toggle-mute"
];
#Display Brightness control
"XF86MonBrightnessUp".action = spawn [
"${pkgs.avizo}/bin/lightctl"
"up"
];
"XF86MonBrightnessDown".action = spawn [
"${pkgs.avizo}/bin/lightctl"
"down"
];
# "Framework" key (F12)
# "XF86AudioMedia".action = spawn [];
# Force close a window
"Mod+Q".action = close-window;
"Mod+Shift+Q".action = quit;
# bindings for like window management ig
# bindings for window management
"Mod+Left".action = focus-column-left;
"Mod+Down".action = focus-window-down;
@@ -177,7 +187,7 @@
"Mod+Ctrl+U".action = move-column-to-workspace-down;
"Mod+Ctrl+I".action = move-column-to-workspace-up;
#does little squeeze thing into the left or right position with another window
# does little squeeze thing into the left or right position with another window
"Mod+BracketLeft".action = consume-or-expel-window-left;
"Mod+BracketRight".action = consume-or-expel-window-right;