summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-02-16 13:03:09 +0100
committerJulian T <julian@jtle.dk>2020-02-16 13:03:09 +0100
commit108018b8d55449a0e8cd36a0d762bc41679fc208 (patch)
tree9c05a06e6056ae96470acd2ca8a6b3c4be94835e
parent78c9d951691871db14ae6b30c100ed3599af8198 (diff)
Changed i3 config and xmodmap
Superkey and alt is swapped by xmodmap and i3 will listen on super instead of alt. This makes window switching work the same but programs relying on alt will also work.
-rw-r--r--i3/.config/i3/config11
-rw-r--r--xinit/.Xmodmap5
2 files changed, 13 insertions, 3 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index ed66285..560eab8 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -9,7 +9,11 @@
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
-set $mod Mod1
+# Gaps
+gaps inner 10
+smart_gaps on
+
+set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
@@ -36,7 +40,7 @@ bindsym $mod+i exec --no-startup-id i3-sensible-terminal
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
-bindsym $mod+d exec rofi -show run
+bindsym $mod+d exec rofi -show drun
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
@@ -90,7 +94,7 @@ bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
# focus the child container
-#bindsym $mod+d focus child
+bindsym $mod+c focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
@@ -157,6 +161,7 @@ bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
# launch script thingy
bindsym $mod+semicolon exec --no-startup-id Scripts/lc --dmenu
+bindsym $mod+Shift+i exec --no-startup-id Scripts/lc common
# default app workspaces
assign [class="qutebrowser"] $ws9
diff --git a/xinit/.Xmodmap b/xinit/.Xmodmap
index 89d617a..735734a 100644
--- a/xinit/.Xmodmap
+++ b/xinit/.Xmodmap
@@ -2,3 +2,8 @@ clear lock
clear control
keycode 66 = Control_R
add control = Control_R Control_L
+
+remove mod1 = Alt_L
+remove mod4 = Super_L
+add mod1 = Super_L
+add mod4 = Alt_L