From 9909c4d5fd490fbc76fabae034c519f946d3070d Mon Sep 17 00:00:00 2001 From: Rachel Lambda Samuelsson Date: Wed, 16 Oct 2024 23:57:18 +0200 Subject: [PATCH] moving keybinds into i3 --- home-manager/i3.nix | 13 ++++++++++--- home-manager/plasma.nix | 42 ++--------------------------------------- 2 files changed, 12 insertions(+), 43 deletions(-) diff --git a/home-manager/i3.nix b/home-manager/i3.nix index fc72aa5..2926506 100644 --- a/home-manager/i3.nix +++ b/home-manager/i3.nix @@ -7,6 +7,14 @@ gaps outer 5px default_border pixel 3 + bindsym Mod1+r exec --no-startup-id rofi -show drun + bindsym Mod4+p exec --no-startup-id ${extra.cpypsk} + + bindsym Mod1+Prior exec --no-startup-id ${extra.eyezoom} eye + bindsym Mod1+Next exec --no-startup-id ${extra.eyezoom} default + bindsym Mod1+Home exec --no-startup-id ${extra.eyezoom} wide + bindsym Mod1+End exec --no-startup-id ${extra.eyezoom} thin + # class border backgr. text indicator child_border client.focused #d79921 #d79921 #d79921 #d79921 #d79921 client.focused_inactive #d79921 #d79921 #d79921 #d79921 #d79921 @@ -26,6 +34,8 @@ bindsym Mod4+f fullscreen toggle + bindsym Mod4+Enter exec --no-startup-id wezterm + set $ws1 "1" set $ws2 "2" set $ws3 "3" @@ -35,7 +45,6 @@ set $ws7 "7" set $ws8 "8" set $ws9 "9" - set $ws10 "10" # switch to workspace bindsym Mod4+1 workspace number $ws1 @@ -47,7 +56,6 @@ bindsym Mod4+7 workspace number $ws7 bindsym Mod4+8 workspace number $ws8 bindsym Mod4+9 workspace number $ws9 - bindsym Mod4+0 workspace number $ws10 # move focused container to workspace bindsym Mod4+Shift+1 move container to workspace number $ws1 @@ -59,7 +67,6 @@ bindsym Mod4+Shift+7 move container to workspace number $ws7 bindsym Mod4+Shift+8 move container to workspace number $ws8 bindsym Mod4+Shift+9 move container to workspace number $ws9 - bindsym Mod4+Shift+0 move container to workspace number $ws10 # change focus bindsym Mod4+h focus left diff --git a/home-manager/plasma.nix b/home-manager/plasma.nix index c7571f5..64a9031 100644 --- a/home-manager/plasma.nix +++ b/home-manager/plasma.nix @@ -4,50 +4,12 @@ enable = true; overrideConfig = true; - workspace = { - lookAndFeel = "org.kde.breezedark.desktop"; - }; + workspace.lookAndFeel = "org.kde.breezedark.desktop"; kscreenlocker = { appearance.wallpaper = "${extra.wall}"; }; - hotkeys.commands."launch-terminal" = { - name = "Launch terminal"; - key = "Meta+Return"; - command = "wezterm"; - }; - - hotkeys.commands."eye" = { - name = "eye zoom"; - key = "Alt+PgUp"; - command = "${extra.eyezoom} eye"; - }; - - hotkeys.commands."default" = { - name = "default zoom"; - key = "Alt+PgDown"; - command = "${extra.eyezoom} default"; - }; - - hotkeys.commands."thin" = { - name = "thin zoom"; - key = "Alt+End"; - command = "${extra.eyezoom} tiktok"; - }; - - hotkeys.commands."wide" = { - name = "wide zoom"; - key = "Alt+Home"; - command = "${extra.eyezoom} wide"; - }; - - hotkeys.commands."cpypsk" = { - name = "Launch cpypsk"; - key = "Meta+p"; - command = "${extra.cpypsk}"; - }; - fonts = { general = { family = "SAX2 Nerd Font"; @@ -110,7 +72,7 @@ }; configFile."startkderc" = { - "General"."systemdBoot" = false; + "General"."systemdBoot" = false; # needed to use i3 in place of KWin }; };