mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
feat(i3): float all mpvs, sticky shortcut
This commit is contained in:
@@ -26,15 +26,22 @@ in with config.niveum; {
|
|||||||
hideEdgeBorders = "smart";
|
hideEdgeBorders = "smart";
|
||||||
commands = [
|
commands = [
|
||||||
{
|
{
|
||||||
command = "floating enable";
|
|
||||||
criteria = { class = "fzfmenu"; };
|
criteria = { class = "fzfmenu"; };
|
||||||
|
command = "floating enable";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
criteria = { class = "mpv"; };
|
||||||
|
command = lib.strings.concatStringsSep ", " [
|
||||||
|
"floating enable"
|
||||||
|
"sticky enable"
|
||||||
|
"fullscreen disable"
|
||||||
|
"resize set 640 480"
|
||||||
|
"move position mouse"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
gaps = {
|
gaps.inner = 8;
|
||||||
inner = 8;
|
|
||||||
outer = 0;
|
|
||||||
};
|
|
||||||
floating = {
|
floating = {
|
||||||
titlebar = false;
|
titlebar = false;
|
||||||
border = 1;
|
border = 1;
|
||||||
@@ -66,7 +73,7 @@ in with config.niveum; {
|
|||||||
};
|
};
|
||||||
bars = [{
|
bars = [{
|
||||||
workspaceButtons = false;
|
workspaceButtons = false;
|
||||||
fonts = [ "Monospace ${toString (config.niveum.fonts.size - 3)}" ];
|
fonts = [ "Monospace ${toString (config.niveum.fonts.size - 1)}" ];
|
||||||
mode = "hide";
|
mode = "hide";
|
||||||
colors = rec {
|
colors = rec {
|
||||||
background = colours.background;
|
background = colours.background;
|
||||||
@@ -103,6 +110,7 @@ in with config.niveum; {
|
|||||||
"${modifier}+Shift+w" = "exec ${pkgs.xautolock}/bin/xautolock -locknow";
|
"${modifier}+Shift+w" = "exec ${pkgs.xautolock}/bin/xautolock -locknow";
|
||||||
"${modifier}+Shift+x" = "exec --no-startup-id ${move-to-new-workspace}";
|
"${modifier}+Shift+x" = "exec --no-startup-id ${move-to-new-workspace}";
|
||||||
"${modifier}+Shift+z" = "floating toggle";
|
"${modifier}+Shift+z" = "floating toggle";
|
||||||
|
"${modifier}+Shift+s" = "sticky toggle";
|
||||||
"${modifier}+Up" = "focus up";
|
"${modifier}+Up" = "focus up";
|
||||||
"${modifier}+a" = "exec ${pkgs.rofi}/bin/rofi -display-window — -show window";
|
"${modifier}+a" = "exec ${pkgs.rofi}/bin/rofi -display-window — -show window";
|
||||||
"${modifier}+b" = "workspace prev";
|
"${modifier}+b" = "workspace prev";
|
||||||
@@ -120,6 +128,7 @@ in with config.niveum; {
|
|||||||
"${modifier}+r" = "mode resize";
|
"${modifier}+r" = "mode resize";
|
||||||
"${modifier}+s" = "layout stacking";
|
"${modifier}+s" = "layout stacking";
|
||||||
"${modifier}+t" = "exec ${applications.fileManager}";
|
"${modifier}+t" = "exec ${applications.fileManager}";
|
||||||
|
"${modifier}+u" = "exec ${pkgs.scripts.emoji-menu}/bin/emoji-menu";
|
||||||
"${modifier}+v" = "split v";
|
"${modifier}+v" = "split v";
|
||||||
"${modifier}+w" = "layout tabbed";
|
"${modifier}+w" = "layout tabbed";
|
||||||
"${modifier}+x" = "exec --no-startup-id ${new-workspace}";
|
"${modifier}+x" = "exec --no-startup-id ${new-workspace}";
|
||||||
@@ -130,6 +139,8 @@ in with config.niveum; {
|
|||||||
"XF86Calculator" = "exec i3-sensible-terminal -e ${pkgs.python3}/bin/python3";
|
"XF86Calculator" = "exec i3-sensible-terminal -e ${pkgs.python3}/bin/python3";
|
||||||
"XF86ScreenSaver" = "exec ${pkgs.xautolock}/bin/xautolock -locknow";
|
"XF86ScreenSaver" = "exec ${pkgs.xautolock}/bin/xautolock -locknow";
|
||||||
"XF86Display" = "exec ${pkgs.xcalib}/bin/xcalib -invert -alter";
|
"XF86Display" = "exec ${pkgs.xcalib}/bin/xcalib -invert -alter";
|
||||||
|
|
||||||
|
# key names detected with xorg.xev:
|
||||||
# XF86WakeUp (fn twice)
|
# XF86WakeUp (fn twice)
|
||||||
# XF86Battery (fn f3)
|
# XF86Battery (fn f3)
|
||||||
# XF86Sleep (fn f4) - actually suspends
|
# XF86Sleep (fn f4) - actually suspends
|
||||||
|
|||||||
Reference in New Issue
Block a user