From: Jannik ZANDER Date: Sun, 8 Jul 2018 09:41:55 +0000 (+0200) Subject: Update i3 config X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=c759b548797395b244bbab8e437e6f38ce8907f2;p=dotfiles.git Update i3 config --- diff --git a/.config/i3/config b/.config/i3/config index e54a067..897258a 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -5,20 +5,21 @@ # Mod=Windows/Command key (left of spacebar) set $mod Mod4 +# Multimedia keys +bindsym $mod+c exec dwmkey dwm_key_c +bindsym $mod+plus exec dwmkey dwm_key_plus +bindsym $mod+minus exec dwmkey dwm_key_minus +bindsym $mod+Next exec dwmkey music_next +bindsym $mod+Prior exec dwmkey music_previous +bindsym $mod+Shift+s exec dwmkey dwm_key_minus +bindsym $mod+Shift+d exec dwmkey dwm_key_plus + # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). font pango:DejaVu Sans Mono 10 -# use these keys for focus, movement, and resize directions -# -# Make it the same as vim -set $left h -set $down j -set $up k -set $right l - # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -33,9 +34,18 @@ bindsym $mod+d kill # start dmenu (a program launcher) # # Make it the same as vim command mode -# bindsym $mod+semicolon exec dmenu_run +#bindsym $mod+semicolon exec dmenu_run #bindsym $mod+semicolon exec --no-startup-id i3-dmenu-desktop bindsym $mod+semicolon exec --no-startup-id rofi -show run +#bindsym $mod+semicolon exec echo -n | dmenu -b | xargs i3 + +# use these keys for focus, movement, and resize directions +# +# Make it the same as vim +set $left h +set $down j +set $up k +set $right l # change focus bindsym $mod+$left focus left @@ -49,8 +59,18 @@ bindsym $mod+Shift+$down move down bindsym $mod+Shift+$up move up bindsym $mod+Shift+$right move right +bindsym Mod1+Ctrl+Shift+h move workspace to output left +bindsym Mod1+Ctrl+Shift+k move workspace to output up +bindsym Mod1+Ctrl+Shift+j move workspace to output down +bindsym Mod1+Ctrl+Shift+l move workspace to output right + +bindsym Mod1+Shift+h move container to output left +bindsym Mod1+Shift+k move container to output up +bindsym Mod1+Shift+j move container to output down +bindsym Mod1+Shift+l move container to output right + # split in horizontal orientation -bindsym $mod+n split h +bindsym $mod+g split h # split in vertical orientation bindsym $mod+v split v @@ -104,7 +124,7 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'gnome-session-quit --force --logout'" +# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'gnome-session-quit --force --logout'" # resize window (you can also use the mouse for that) mode "resize" { @@ -122,9 +142,74 @@ mode "resize" { # back to normal: Enter or Escape bindsym Escape mode "default" } - bindsym $mod+r mode "resize" +mode "command" { +# bindsym s move scratchpad; mode "default" +# bindsym b bar mode toggle; mode "default" + bindsym Escape mode "default" +# bindsym c exec echo -n | dmenu | xargs i3; mode "default" +# +# bindsym q exec pc location c3h; mode "default" +# bindsym w exec pc location wig; mode "default" +# bindsym e exec pc location fez; mode "default" +# bindsym r exec pc location turban; mode "default" +# +# bindsym p exec pomodoro query; mode "default" +# bindsym shift+p exec pomodoro off; mode "default" +# +# bindsym $mod+s layout stacking; mode "default" +# bindsym $mod+d layout default; mode "default" +# bindsym $mod+h layout splith; mode "default" +# bindsym $mod+v layout splitv; mode "default" +# bindsym $mod+t layout tabbed; mode "default" +# #bindsym $mod+v layout toggle split; mode "default" +# + bindsym d mode "display" +# + bindsym l mode "lockin" +} +bindsym $mod+x mode "command" + +mode "lockin" { +# bindsym $mod+F8 mode "default"; +# +# # multimedia keys should still work +# bindsym $mod+c exec dwmkey dwm_key_c +# bindsym $mod+plus exec dwmkey dwm_key_plus +# bindsym $mod+minus exec dwmkey dwm_key_minus +} + +mode "display" { +# bindsym d exec autodetect_screenlayout; mode "default" + bindsym h exec autodetect_screenlayout left; mode "default" + bindsym l exec autodetect_screenlayout right; mode "default" + bindsym j exec autodetect_screenlayout down; mode "default" + bindsym k exec autodetect_screenlayout up; mode "default" + bindsym Shift+h exec autodetect_screenlayout left left; mode "default" + bindsym Shift+l exec autodetect_screenlayout right left; mode "default" + bindsym Shift+j exec autodetect_screenlayout down left; mode "default" + bindsym Shift+k exec autodetect_screenlayout up left; mode "default" +# bindsym c exec .screenlayout/ccc.sh; mode "default" +# bindsym s exec .screenlayout/single.sh; exec sh ~/.fehbg; mode "default" +# bindsym Shift+s exec xrandr --output eDP-1 --off; mode "default" +# bindsym Shift+h exec .screenlayout/monitor-only.sh; mode "default" +# bindsym f exec .screenlayout/ftl.sh; mode "default" +# #bindsym w exec .screenlayout/work.sh; mode "default" +# bindsym w exec switch_wallpaper; mode "default" +# bindsym Shift+w exec unset_wallpaper; mode "default" +# bindsym h exec .screenlayout/home.sh; mode "default" +# bindsym Shift+r exec .screenlayout/rotated_right.sh; exec sh ~/.fehbg; mode "default" + bindsym Escape mode "default" +} + +mode "paste" { +# bindsym a mode "default"; exec xdotool keyup a && xdotool type --delay 2 "$(cat ~/sync/edge/aliases)" && xdotool key Return && i3-msg mode paste +# +# bindsym q mode "default" + bindsym Escape mode "default" +} + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { @@ -152,7 +237,7 @@ exec --no-startup-id gnome-screensaver # GNOME screensaver exec --no-startup-id xautolock -time 10 -locker 'gnome-screensaver-command -l' # background image -exec --no-startup-id feh --bg-center ~/Download/music.jpg +#exec --no-startup-id feh --bg-center ~/Download/music.jpg ####################################################################### # automatically start i3-config-wizard to offer the user to create a