summaryrefslogtreecommitdiff
path: root/.config/i3
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-02-16 13:23:56 -0500
committerluxagraf <sng@luxagraf.net>2020-02-16 13:23:56 -0500
commitcd507c92f617d4a8a3f7bb0b43e425491ef7184d (patch)
tree42144ef0f35b91e7955f570c5ecc4bcec3c4d780 /.config/i3
initial commit of dotfiles
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/config233
1 files changed, 233 insertions, 0 deletions
diff --git a/.config/i3/config b/.config/i3/config
new file mode 100644
index 0000000..e5fa285
--- /dev/null
+++ b/.config/i3/config
@@ -0,0 +1,233 @@
+# $mod1 is right alt
+# $mod2 is left alt
+set $mod Mod1
+set $mod2 Mod4
+
+font pango:Inconsolata, Icons 13
+
+# Use Mouse+$mod to drag floating windows to their wanted position
+floating_modifier $mod
+
+# kill focused window
+bindsym $mod+q kill
+
+# Mouse behaviour wrt windows.
+focus_follows_mouse no
+
+# start dmenu (a program launcher)
+#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+j focus left
+bindsym $mod+k focus right
+bindsym $mod+l focus up
+bindsym $mod+semicolon focus down
+
+# 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 right
+bindsym $mod+Shift+l move up
+bindsym $mod+Shift+semicolon move down
+
+# 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+space floating toggle
+
+# change focus between tiling / floating windows
+bindsym $mod+Shift+space focus mode_toggle
+
+# focus the parent container
+bindsym $mod+a focus parent
+
+# focus the child container
+#bindsym $mod+d focus child
+#
+#set $ws1 "1 "
+set $ws1 "1"
+#set $ws2 "2 "
+set $ws2 "2"
+#set $ws3 "3 "
+set $ws3 "3"
+#set $ws4 "4 "
+set $ws4 "4"
+#set $ws5 "5 "
+set $ws5 "5"
+#set $ws6 "6 "
+set $ws6 "6"
+set $ws7 "7"
+set $ws8 "8"
+
+
+# switch to workspace
+bindsym $mod2+1 workspace $ws1
+bindsym $mod2+2 workspace $ws2
+bindsym $mod2+3 workspace $ws3
+bindsym $mod2+4 workspace $ws4
+bindsym $mod2+5 workspace $ws5
+bindsym $mod2+6 workspace $ws6
+bindsym $mod2+7 workspace $ws7
+bindsym $mod2+8 workspace $ws8
+bindsym $mod2+9 workspace $ws9
+bindsym $mod2+0 workspace $ws10
+
+# move focused container to workspace
+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
+
+for_window [class="^Chromium$"] border none
+for_window [title="Oracle VM VirtualBox Manager"] floating enable
+for_window [class="^Pcmanfm"] floating enable
+for_window [class="^lxf$"] floating enable
+for_window [class="^Corebird$"] floating enable
+for_window [class="^Kdenlive$"] floating enable
+for_window [class="^Darktable$"] border none
+for_window [class="^Mate-terminal$"] border none
+for_window [class="^Termite$"] border none
+for_window [class="^URxvt"] border none
+for_window [class="^firefoxdeveloperedition"] border none
+for_window [class="^Vivaldi"] border none
+for_window [class="^qutebrowser"] border none
+for_window [class="Pavucontrol"] floating enable
+for_window [class="*Virtualbox*"] floating enable border none
+for_window [class="Pinentry"] floating enable
+for_window [window_role="pop-up"] floating enable
+for_window [class="Yad"] floating enable
+for_window [class="feh"] floating enable
+for_window [class="QtPass"] floating enable
+for_window [class="hangouts.google.com"] floating disable
+for_window [class="hangouts.google.com"] border normal
+
+assign [class="URxvt"] $ws1
+assign [class="qutebrowser"] $ws2
+assign [class="Darktable"] $ws3
+assign [class="Firefox Developer"] $ws4
+assign [class="Vivaldi"] $ws4
+assign [class="Slack"] $ws6
+
+#workspace switching
+bindsym $mod2+k workspace next
+bindsym $mod2+j workspace prev
+bindsym $mod2+space exec dmenu_run
+
+#Volume and brightness
+bindsym XF86AudioRaiseVolume exec /usr/bin/pulseaudio-ctl up && killall -SIGRTMIN+10 i3status
+bindsym XF86AudioLowerVolume exec /usr/bin/pulseaudio-ctl down && killall -SIGUSR1 i3status
+bindsym XF86AudioMute exec /usr/bin/pulseaudio-ctl mute && killall -SIGUSR1 i3status
+bindsym XF86AudioMicMute exec --no-startup-id amixer set Capture toggle && killall -SIGUSR1 i3status
+bindsym XF86MonBrightnessUp exec --no-startup-id light -A 10
+bindsym XF86MonBrightnessDown exec --no-startup-id light -U 10
+
+# 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 '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" {
+ # These bindings trigger as soon as you enter the resize mode
+
+ # Pressing left will shrink the window’s width.
+ # 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 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
+ bindsym Return 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 SCRIPT_DIR=/home/lxf/.i3blocks/blocklets i3blocks
+ colors {
+ background #222222
+ statusline $mgrey
+ separator $grey
+ #separator $lgrey
+ # border background text
+ focused_workspace #222222 #444444 $white
+ active_workspace #222222 #222222 $white
+ inactive_workspace #222222 #222222 $mgrey
+ urgent_workspace $blue #222222 $white
+ }
+}
+
+
+exec --no-startup-id xcompmgr -n
+# set desktop wallpaper
+exec --no-startup-id sh ~/.fehbg
+# clipboard manager
+exec --no-startup-id clipit --no-icon
+#start up automation
+#exec --no-startup-id autokey-gtk
+# bluetooth
+exec --no-startup-id blueman-applet
+# network
+exec --no-startup-id nm-applet
+# backup
+exec --no-startup-id nextcloud
+#exec --no-startup-id dropbox
+# Vistual and typing
+exec --no-startup-id redshift-gtk -l 33.951935:-83.357567 -m randr -t 5700:3600 &
+exec --no-startup-id xinput set-prop 12 "libinput Natural Scrolling Enabled" 1 &
+exec --no-startup-id xset r rate 250 25 &
+exec --no-startup-id xset -b
+exec --no-startup-id xautolock -time 10 -locker 'i3lock -i pictures/desktops/escribano-blur.png'
+exec --no-startup-id xcape -e 'Control_L=Escape'
+
+
+# set up a basic environment
+#exec --no-startup-id i3-msg 'exec --no-startup-id urxvt; exec --no-startup-id vivaldi-stable;'
+