Compare commits

...

2 commits

Author SHA1 Message Date
cy
0d8ec05ba6 how about kitty now 2025-01-21 16:24:33 -05:00
cy
03e1a832ff some irssi config 2025-01-21 15:36:19 -05:00
6 changed files with 60 additions and 3 deletions

View file

@ -12,6 +12,7 @@
keybind = [
"ctrl+q=quit"
"ctrl+shift+c=copy_to_clipboard"
"ctrl+shift+v=paste_from_clipboard"
];
};
};

View file

@ -14,5 +14,8 @@
rust.autoJoin = true;
};
};
extraConfig = ''
ignores = ( { level = "JOINS PARTS QUITS MODES NICKS"; } )
'';
};
}

46
home/kitty.nix Normal file
View file

@ -0,0 +1,46 @@
{pkgs, ...}: {
programs.kitty = {
enable = true;
font = {
name = "IBM Plex Mono";
package = pkgs.ibm-plex;
size = 12;
};
themeFile = "GitHub_Dark";
settings = {
enable_audio_bell = false;
# how many windows should be open before kitty asks
# for confirmation
confirm_os_window_close = 0;
};
keybindings = {
# kitty_mod is ctrl+shift by default
"kitty_mod+c" = "copy_to_clipboard";
"kitty_mod+v" = "paste_from_clipboard";
"ctrl+q" = "quit";
# windows
"kitty_mod+h" = "neighboring_window left";
"kitty_mod+alt+h" = "move_window left";
"kitty_mod+l" = "neighboring_window right";
"kitty_mod+alt+l" = "move_window right";
"kitty_mod+j" = "neighboring_window down";
"kitty_mod+alt+j" = "move_window down";
"kitty_mod+k" = "neighboring_window up";
"kitty_mod+alt+k" = "move_window up";
"ctrl+f2" = "detach_tab";
"ctrl+f3" = "detach_window new-tab";
"ctrl+f4" = "detach_window prev-tab";
"ctrl+alt+l" = "next_layout";
"ctrl+alt+t" = "goto_layout tall";
"ctrl+alt+s" = "goto_layout stack";
# tabs
"kitty_mod+n" = "next_tab";
"kitty_mod+p" = "previous_tab";
"kitty_mod+alt+n" = "move_tab_forward";
"kitty_mod+alt+p" = "move_tab_backward";
"kitty_mod+w" = "close_tab";
};
};
}

View file

@ -6,7 +6,7 @@
}:
let
wallpaper = "${./nixos-c-book.png}";
terminal = "ghostty";
terminal = "kitty";
menu = [
"fuzzel"
"-w"

View file

@ -5,7 +5,7 @@ active_window=$(niri msg --json focused-window |jq -r .app_id)
if [ "$1" = "btn1" ]; then
if [ "$active_window" = "anki" ]; then
wtype " "
elif [ "$active_window" = "foot" ]; then
elif [ "$active_window" = "kitty" ]; then
wtype -M ctrl -M shift -k c -m ctrl -m shift
elif [ "$active_window" = "chromium-browser" ] || [ "$active_window" = "librewolf" ]; then
wtype -M alt -P right -p right -m alt
@ -15,7 +15,7 @@ if [ "$1" = "btn1" ]; then
else
if [ "$active_window" = "anki" ]; then
wtype "1"
elif [ "$active_window" = "foot" ]; then
elif [ "$active_window" = "kitty" ]; then
wtype -M ctrl -M shift -k v -m ctrl
elif [ "$active_window" = "chromium-browser" ] || [ "$active_window" = "librewolf" ]; then
wtype -M alt -P left -p left -m alt

View file

@ -9,6 +9,7 @@
../niri
../irssi.nix
../ghostty.nix
../kitty.nix
];
home = {
username = "yt";
@ -49,6 +50,12 @@
x11.enable = true;
};
dconf.settings = {
"org/gnome/desktop/interface" = {
cursor-theme = "Bibata-Modern";
};
};
home.packages = with pkgs; [
firefox
ungoogled-chromium