From 50f4c789041c1395d9f4304514e6737ce7c10f9c Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 1 Dec 2022 13:12:22 +0100 Subject: i3 refactor config --- i3/config.d/20-visual.conf | 2 +- i3/config.d/40-app-shortcuts.conf | 3 -- i3/config.d/40-i3-shortcuts.conf | 54 ----------------------------------- i3/config.d/40-wm-shortcuts.conf | 60 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 58 deletions(-) create mode 100644 i3/config.d/40-wm-shortcuts.conf diff --git a/i3/config.d/20-visual.conf b/i3/config.d/20-visual.conf index 84a4762..883f2e2 100644 --- a/i3/config.d/20-visual.conf +++ b/i3/config.d/20-visual.conf @@ -28,6 +28,6 @@ client.background $black default_border none default_floating_border none -for_window [all] border pixel 0 +#for_window [all] border pixel 0 gaps inner 5 diff --git a/i3/config.d/40-app-shortcuts.conf b/i3/config.d/40-app-shortcuts.conf index c893ee5..83082df 100644 --- a/i3/config.d/40-app-shortcuts.conf +++ b/i3/config.d/40-app-shortcuts.conf @@ -17,9 +17,6 @@ bindsym $mod+p exec "flameshot gui" # rofi bindsym $mod+d exec rofi drun -show drun -terminal termite -run-command "/bin/bash -i -c '{cmd}'" -# Scratchpad -bindsym $mod+Shift+BackSpace move scratchpad -bindsym $mod+BackSpace scratchpad show # notifications bindsym $mod+n exec "kill -s USR1 $(pidof deadd-notification-center)" diff --git a/i3/config.d/40-i3-shortcuts.conf b/i3/config.d/40-i3-shortcuts.conf index d4e49f5..b5585b1 100644 --- a/i3/config.d/40-i3-shortcuts.conf +++ b/i3/config.d/40-i3-shortcuts.conf @@ -2,60 +2,6 @@ bindsym $mod+Shift+e exec "rofi -show fb -modi fb:rofi-exit-menu.sh" -bindsym $mod+Shift+c reload -bindsym $mod+Shift+r restart - -bindsym $mod+Shift+q kill - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+odiaeresis focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+odiaeresis move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -# bindsym $mod+d focus child # Pulse Audio controls bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% diff --git a/i3/config.d/40-wm-shortcuts.conf b/i3/config.d/40-wm-shortcuts.conf new file mode 100644 index 0000000..ee3fd29 --- /dev/null +++ b/i3/config.d/40-wm-shortcuts.conf @@ -0,0 +1,60 @@ +# vi: ft=i3config + +bindsym $mod+Shift+c reload +bindsym $mod+Shift+r restart + +bindsym $mod+Shift+q kill + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+odiaeresis focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+odiaeresis move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +# bindsym $mod+d focus child + +# Scratchpad +bindsym $mod+Shift+BackSpace move scratchpad +bindsym $mod+BackSpace scratchpad show -- cgit v1.2.3