Customize Gptel and bTop floating windows sizes for each host
This commit is contained in:
parent
e1ebdc68e9
commit
38101c98d3
2 changed files with 19 additions and 4 deletions
|
@ -351,11 +351,11 @@ binds {
|
||||||
Mod+B { spawn "firefox"; }
|
Mod+B { spawn "firefox"; }
|
||||||
Mod+RETURN { spawn "emacsclient" "-c" "--eval" "(ccr/start-eshell)"; }
|
Mod+RETURN { spawn "emacsclient" "-c" "--eval" "(ccr/start-eshell)"; }
|
||||||
Mod+M { spawn "emacsclient" "-c" "--eval" "(notmuch-search \"tag:new\")"; }
|
Mod+M { spawn "emacsclient" "-c" "--eval" "(notmuch-search \"tag:new\")"; }
|
||||||
Mod+G { spawn "emacsclient" "-c" "--eval" "(switch-to-buffer (gptel \"*ChatGPT*\"))" "-F" "((name . \"GPTel - Emacs\") (width . 150) (height . 60))'"; }
|
Mod+G { spawn "emacsclient" "-c" "--eval" "(switch-to-buffer (gptel \"*ChatGPT*\"))" "-F" "((name . \"GPTel - Emacs\") (width . $NIRI_GPTEL_COLS) (height . $NIRI_GPTEL_ROWS))'"; }
|
||||||
Mod+Shift+C { spawn "emacsclient" "-c" "--eval" "(org-roam-dailies-capture-today)"; }
|
Mod+Shift+C { spawn "emacsclient" "-c" "--eval" "(org-roam-dailies-capture-today)"; }
|
||||||
Mod+Alt+L { spawn "swaylock"; }
|
Mod+Alt+L { spawn "swaylock"; }
|
||||||
Mod+Space { spawn "rofi" "-show" "menu" "-modi" "menu:rofi-power-menu"; }
|
Mod+Space { spawn "rofi" "-show" "menu" "-modi" "menu:rofi-power-menu"; }
|
||||||
Mod+Ctrl+b { spawn "foot" "--title='bTop'" "-W" "210x60" "btop";}
|
Mod+Ctrl+b { spawn "foot" "--title='bTop'" "-W" "NIRI_BTOP_COLSx$NIRI_BTOP_ROWS" "btop";}
|
||||||
|
|
||||||
// Example volume keys mappings for PipeWire & WirePlumber.
|
// Example volume keys mappings for PipeWire & WirePlumber.
|
||||||
// The allow-when-locked=true property makes them work even when the session is locked.
|
// The allow-when-locked=true property makes them work even when the session is locked.
|
||||||
|
|
|
@ -33,10 +33,25 @@
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = let
|
||||||
|
niriVars = {
|
||||||
|
picard = {
|
||||||
|
NIRI_GPTEL_ROWS = 60;
|
||||||
|
NIRI_GPTEL_COLS = 150;
|
||||||
|
NIRI_BTOP_ROWS = 210;
|
||||||
|
NIRI_BTOP_COLS = 60;
|
||||||
|
};
|
||||||
|
kirk = {
|
||||||
|
NIRI_GPTEL_ROWS = 40;
|
||||||
|
NIRI_GPTEL_COLS = 140;
|
||||||
|
NIRI_BTOP_ROWS = 140;
|
||||||
|
NIRI_BTOP_COLS = 40;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
DISPLAY = ":0";
|
DISPLAY = ":0";
|
||||||
QT_QPA_PLATFORM = "wayland";
|
QT_QPA_PLATFORM = "wayland";
|
||||||
};
|
} // (niriVars."${config.networking.hostname}" or niriVars.kirk);
|
||||||
|
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue