+# This file has been auto-generated by i3-config-wizard(1).
+# It will not be overwritten, so edit it as you like.
+#
+# Should you change your keyboard layout some time, delete
+# this file and re-run i3-config-wizard(1).
+#
+
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
-#
-# 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
+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.
+font pango:monospace 8
+
# 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
+#font pango:DejaVu Sans Mono 8
+
+# Before i3 v4.8, we used to recommend this one as the default:
+# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
+# The font above is very space-efficient, that is, it looks good, sharp and
+# clear in small sizes. However, its unicode glyph coverage is limited, the old
+# X core fonts rendering does not support right-to-left and this being a bitmap
+# font, it doesn’t scale on retina/hidpi displays.
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
-#
-# Use vim delete (vim vixen settings more than vim)
-bindsym $mod+d kill
+bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
-#
-# Make it the same as vim command mode
-#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
+bindsym $mod+d exec dmenu_run
+# 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.
+# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
-bindsym $mod+$left focus left
-bindsym $mod+$down focus down
-bindsym $mod+$up focus up
-bindsym $mod+$right focus right
+bindsym $mod+j focus left
+bindsym $mod+k focus down
+bindsym $mod+l focus up
+bindsym $mod+semicolon focus right
-# move focused window
-bindsym $mod+Shift+$left move left
-bindsym $mod+Shift+$down move down
-bindsym $mod+Shift+$up move up
-bindsym $mod+Shift+$right move 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
-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
+# move focused window
+bindsym $mod+Shift+j move left
+bindsym $mod+Shift+k move down
+bindsym $mod+Shift+l move up
+bindsym $mod+Shift+semicolon move 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
+# 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+g split h
+bindsym $mod+h split h
# split in vertical orientation
-bindsym $mod+v split v
+bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
bindsym $mod+space focus mode_toggle
# focus the parent container
-#bindsym $mod+a focus parent
+bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d 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.
+set $ws1 "1"
+set $ws2 "2"
+set $ws3 "3"
+set $ws4 "4"
+set $ws5 "5"
+set $ws6 "6"
+set $ws7 "7"
+set $ws8 "8"
+set $ws9 "9"
+set $ws10 "10"
+
# switch to workspace
-bindsym $mod+1 workspace 1
-bindsym $mod+2 workspace 2
-bindsym $mod+3 workspace 3
-bindsym $mod+4 workspace 4
-bindsym $mod+5 workspace 5
-bindsym $mod+6 workspace 6
-bindsym $mod+7 workspace 7
-bindsym $mod+8 workspace 8
-bindsym $mod+9 workspace 9
-bindsym $mod+0 workspace 10
+bindsym $mod+1 workspace $ws1
+bindsym $mod+2 workspace $ws2
+bindsym $mod+3 workspace $ws3
+bindsym $mod+4 workspace $ws4
+bindsym $mod+5 workspace $ws5
+bindsym $mod+6 workspace $ws6
+bindsym $mod+7 workspace $ws7
+bindsym $mod+8 workspace $ws8
+bindsym $mod+9 workspace $ws9
+bindsym $mod+0 workspace $ws10
# move focused container to workspace
-bindsym $mod+Shift+1 move container to workspace 1
-bindsym $mod+Shift+2 move container to workspace 2
-bindsym $mod+Shift+3 move container to workspace 3
-bindsym $mod+Shift+4 move container to workspace 4
-bindsym $mod+Shift+5 move container to workspace 5
-bindsym $mod+Shift+6 move container to workspace 6
-bindsym $mod+Shift+7 move container to workspace 7
-bindsym $mod+Shift+8 move container to workspace 8
-bindsym $mod+Shift+9 move container to workspace 9
-bindsym $mod+Shift+0 move container to workspace 10
+bindsym $mod+Shift+1 move container to workspace $ws1
+bindsym $mod+Shift+2 move container to workspace $ws2
+bindsym $mod+Shift+3 move container to workspace $ws3
+bindsym $mod+Shift+4 move container to workspace $ws4
+bindsym $mod+Shift+5 move container to workspace $ws5
+bindsym $mod+Shift+6 move container to workspace $ws6
+bindsym $mod+Shift+7 move container to workspace $ws7
+bindsym $mod+Shift+8 move container to workspace $ws8
+bindsym $mod+Shift+9 move container to workspace $ws9
+bindsym $mod+Shift+0 move container to workspace $ws10
# reload the configuration file
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 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
- bindsym $left resize shrink width 10 px or 10 ppt
- bindsym $down resize grow height 10 px or 10 ppt
- bindsym $up resize shrink height 10 px or 10 ppt
- bindsym $right resize grow width 10 px or 10 ppt
-
- # back to normal: Enter or Escape
+ bindsym j resize shrink width 10 px or 10 ppt
+ bindsym k resize grow height 10 px or 10 ppt
+ bindsym l resize shrink height 10 px or 10 ppt
+ bindsym semicolon resize grow width 10 px or 10 ppt
+
+ # same bindings, but for the arrow keys
+ bindsym Left resize shrink width 10 px or 10 ppt
+ bindsym Down resize grow height 10 px or 10 ppt
+ bindsym Up resize shrink height 10 px or 10 ppt
+ bindsym Right resize grow width 10 px or 10 ppt
+
+ # back to normal: Enter or Escape or $mod+r
+ bindsym Return mode "default"
bindsym Escape mode "default"
+ bindsym $mod+r 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"
-}
+bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
}
-
-#### Keep as much as possible from GNOME desktop
-
-# audio controls
-bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +5%
-bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -5%
-bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle
-
-# screen brightness controls
-bindsym XF86MonBrightnessUp exec xbacklight -inc 10
-bindsym XF86MonBrightnessDown exec xbacklight -dec 10
-
-# screenlock
-bindsym Control+$mod+l exec gnome-screensaver-command -l
-
-# custom settings
-exec --no-startup-id gnome-session # GNOME session
-exec --no-startup-id gnome-settings-daemon # GNOME desktop settings
-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
-
-#######################################################################
-# automatically start i3-config-wizard to offer the user to create a
-# keysym-based config which used their favorite modifier (alt or windows)
-#
-# i3-config-wizard will not launch if there already is a config file
-# in ~/.i3/config.
-#
-# Please remove the following exec line:
-#######################################################################
-#exec i3-config-wizard
[Default Applications]
-text/plain=vim.desktop
-text/html=firefox.desktop
-x-scheme-handler/http=firefox.desktop
-x-scheme-handler/https=firefox.desktop
+text/plain=code.desktop
+text/html=userapp-Firefox-0UV8TZ.desktop
+x-scheme-handler/http=userapp-Firefox-0UV8TZ.desktop
+x-scheme-handler/https=userapp-Firefox-0UV8TZ.desktop
x-scheme-handler/about=brave.desktop
x-scheme-handler/unknown=brave.desktop
video/x-ogm+ogg=vlc.desktop
audio/x-mod=vlc.desktop
audio/x-s3m=vlc.desktop
audio/x-xm=vlc.desktop
-x-scheme-handler/ftp=firefox.desktop
-x-scheme-handler/chrome=firefox.desktop
-application/x-extension-htm=firefox.desktop
-application/x-extension-html=firefox.desktop
-application/x-extension-shtml=firefox.desktop
-application/xhtml+xml=firefox.desktop
-application/x-extension-xhtml=firefox.desktop
-application/x-extension-xht=firefox.desktop
-x-scheme-handler/mailto=gnome-gmail.desktop
+x-scheme-handler/ftp=userapp-Firefox-0UV8TZ.desktop
+x-scheme-handler/chrome=userapp-Firefox-0UV8TZ.desktop
+application/x-extension-htm=userapp-Firefox-0UV8TZ.desktop
+application/x-extension-html=userapp-Firefox-0UV8TZ.desktop
+application/x-extension-shtml=userapp-Firefox-0UV8TZ.desktop
+application/xhtml+xml=userapp-Firefox-0UV8TZ.desktop
+application/x-extension-xhtml=userapp-Firefox-0UV8TZ.desktop
+application/x-extension-xht=userapp-Firefox-0UV8TZ.desktop
+x-scheme-handler/mailto=org.gnome.Evolution.desktop
[Added Associations]
video/ogg=vlc.desktop;
audio/x-s3m=vlc.desktop;
audio/x-xm=vlc.desktop;
application/x-mimearchive=gvim.desktop;
-x-scheme-handler/http=firefox.desktop;
-x-scheme-handler/https=firefox.desktop;
-text/html=firefox.desktop;
+x-scheme-handler/http=firefox.desktop;userapp-Firefox-0UV8TZ.desktop;
+x-scheme-handler/https=firefox.desktop;userapp-Firefox-0UV8TZ.desktop;
+text/html=firefox.desktop;userapp-Firefox-0UV8TZ.desktop;
x-scheme-handler/sms=org.gnome.Shell.Extensions.GSConnect.desktop;
inode/directory=meld.desktop;
application/javascript=gvim.desktop;
-x-scheme-handler/mailto=gnome-gmail.desktop;
+x-scheme-handler/mailto=gnome-gmail.desktop;org.gnome.Evolution.desktop;
+text/markdown=gvim.desktop;
+x-scheme-handler/ftp=userapp-Firefox-0UV8TZ.desktop;
+x-scheme-handler/chrome=userapp-Firefox-0UV8TZ.desktop;
+application/x-extension-htm=userapp-Firefox-0UV8TZ.desktop;
+application/x-extension-html=userapp-Firefox-0UV8TZ.desktop;
+application/x-extension-shtml=userapp-Firefox-0UV8TZ.desktop;
+application/xhtml+xml=userapp-Firefox-0UV8TZ.desktop;
+application/x-extension-xhtml=userapp-Firefox-0UV8TZ.desktop;
+application/x-extension-xht=userapp-Firefox-0UV8TZ.desktop;
+application/x-debian-package=gdebi.desktop;
+application/x-cd-image=gnome-disk-image-writer.desktop;gnome-disk-image-mounter.desktop;
+text/plain=code.desktop;