summaryrefslogtreecommitdiff
path: root/.config/i3
diff options
context:
space:
mode:
authorDavid Luevano <55825613+luevano@users.noreply.github.com>2020-02-10 12:22:59 -0700
committerDavid Luevano <55825613+luevano@users.noreply.github.com>2020-02-10 12:22:59 -0700
commit5b7d5e11fa692578226da3307d69549554c11879 (patch)
treee51e602512288d7104753ef56b90186700800317 /.config/i3
parent64c0c43440bd1246a6e28abaee96ff04e0d1a0bb (diff)
Add some more configs
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/config232
1 files changed, 232 insertions, 0 deletions
diff --git a/.config/i3/config b/.config/i3/config
new file mode 100644
index 0000000..7836cbe
--- /dev/null
+++ b/.config/i3/config
@@ -0,0 +1,232 @@
+#
+# ~/.config/i3/conf
+# vim: filetype=i3config
+
+##---Basic definitions---##
+exec_always feh --bg-fill ~/pix/wp/starwars_1.png
+for_window [class=".*"] border pixel 2
+for_window [class="Yad"] floating enable
+gaps inner 5
+gaps outer 5
+set $mod Mod4
+font pango:monospace 10
+exec --no-startup-id nm-applet
+set $term --no-startup-id $TERMINAL
+set $fmgr --no-startup-id $FILE
+set $ibwsr --no-startup-id $BROWSER
+set $edit --no-startup-id $EDITOR
+set $read --no-startup-id $READER
+set $rstbar pkill -RTMIN+1 $STATUSBAR
+
+##--i3bar configuration--##
+# Primary monitor. (DP-2)
+bar {
+ output DP-2
+ position top
+ status_command $STATUSBAR
+ tray_output DP-2
+}
+# Second monitor. (HDMI-1)
+bar {
+ output HDMI-1
+ position top
+ status_command $STATUSBAR
+ tray_output none
+}
+
+##--Keybindings--##
+# Use Mouse+$mod to drag floating windows to their wanted position
+floating_modifier $mod
+
+# start a terminal
+bindsym $mod+Return exec $term
+
+# kill focused window
+bindsym $mod+Shift+q kill
+
+# start d-menu (only desktop apps)
+bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
+
+# change focus
+bindsym $mod+h focus left
+bindsym $mod+j focus down
+bindsym $mod+k focus up
+bindsym $mod+l 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+ntilde move right
+
+# split in horizontal orientation
+bindsym $mod+Shift+h split h
+
+# split in vertical orientation
+bindsym $mod+Shift+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
+
+# 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 $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 $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 '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 h resize shrink width 10 px or 10 ppt
+ bindsym j resize grow height 10 px or 10 ppt
+ bindsym k resize shrink height 10 px or 10 ppt
+ bindsym l 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"
+
+##--Extra XF86 Keys--##
+bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2% && $rstbar
+bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $rstbar
+bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2% && $rstbar
+bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $rstbar
+bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $rstbar
+# bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $rstbar
+# bindsym XF86PowerOff exec
+# bindsym XF86Copy exec
+# bindsym XF86Open exec
+# bindsym XF86Paste exec
+# bindsym XF86Cut exec
+# bindsym XF86MenuKB exec
+# bindsym XF86Calculator exec
+# bindsym XF86Sleep This binding is typically mapped by systemd automatically.
+# bindsym XF86WakeUp exec
+# bindsym XF86Explorer exec
+# bindsym XF86Send exec
+# bindsym XF86Xfer exec
+# bindsym XF86WWW exec
+# bindsym XF86DOS exec
+# bindsym XF86ScreenSaver exec
+# bindsym XF86RotateWindows exec
+# bindsym XF86TaskPane exec
+# bindsym XF86Favorites exec
+# bindsym XF86MyComputer exec
+# bindsym XF86Back exec
+# bindsym XF86Forward exec
+# bindsym XF86Eject exec
+# bindsym XF86AudioNext exec
+# bindsym XF86AudioPlay exec
+# bindsym XF86AudioPrev exec
+# bindsym XF86AudioStop exec
+# bindsym XF86AudioRecord
+# bindsym XF86AudioRewind exec
+# bindsym XF86AudioForward exec
+# bindsym XF86Phone exec
+# bindsym XF86Tools exec
+# bindsym XF86HomePage exec
+# bindsym XF86Reload restart
+# bindsym XF86ScrollUp exec
+# bindsym XF86ScrollDown exec
+# bindsym XF86New exec
+# bindsym XF86LaunchA exec
+# bindsym XF86LaunchB exec
+# bindsym XF86Launch2 exec
+# bindsym XF86Launch3 exec
+# bindsym XF86Launch4 exec
+# bindsym XF86Launch5 exec
+# bindsym XF86Launch6 exec
+# bindsym XF86Launch7 exec
+# bindsym XF86Launch8 exec
+# bindsym XF86Launch9 exec
+# bindsym XF86TouchpadToggle exec
+# bindsym XF86TouchpadOn exec
+# bindsym XF86TouchpadOff exec
+# bindsym XF86Suspend exec
+# bindsym XF86Close kill
+# bindsym XF86WebCam exec
+# bindsym XF86Mail exec
+# bindsym XF86Messenger exec
+# bindsym XF86Search exec
+# bindsym XF86Go exec
+# bindsym XF86Finance exec
+# bindsym XF86Game exec
+# bindsym XF86Shop exec
+# bindsym XF86MonBrightnessDown exe
+# bindsym XF86MonBrightnessUp exec
+# bindsym XF86AudioMedia exec
+# bindsym XF86Display exec
+# bindsym XF86KbdLightOnOff exec
+# bindsym XF86KbdBrightnessDown exec
+# bindsym XF86KbdBrightnessUp exec
+# bindsym XF86Reply exec
+# bindsym XF86MailForward exec
+# bindsym XF86Save exec
+# bindsym XF86Documents exec
+# bindsym XF86Battery exec
+# bindsym XF86Bluetooth exec
+# bindsym XF86WLAN exec