Kaynağa Gözat

i3 Now builds new config file on reload.

Tom Flucke 8 yıl önce
ebeveyn
işleme
94b39d0434
4 değiştirilmiş dosya ile 10 ekleme ve 368 silme
  1. 4 2
      .i3/07_i3_controls.config
  2. 0 365
      .i3/config
  3. 3 0
      .i3/generatei3Config.sh
  4. 3 1
      .xsessionrc

+ 4 - 2
.i3/07_i3_controls.config

@@ -1,3 +1,5 @@
+### 07 i3 Controls
+
 ##Begin Screen Management
 bindsym $mod+h			split h
 bindsym $mod+v			split v
@@ -11,8 +13,8 @@ bindsym $mod+u			layout default
 ##End Layouts
 
 ##Begin i3 Controls
-bindsym $mod+Shift+c		reload
-bindsym $mod+Shift+r		restart
+bindsym $mod+Shift+c		exec "bash ~/.i3/generatei3Config.sh"; reload
+bindsym $mod+Shift+r		exec "bash ~/.i3/generatei3Config.sh"; restart
 bindsym $mod+Shift+e		exit
 ##End i3 Controls
 

+ 0 - 365
.i3/config

@@ -1,365 +0,0 @@
-### 00 Variables
-
-# i3 config file (v5)
-#
-# Please see http://i3wm.org/docs/userguide.html for a complete reference!
-
-# Mod1 = Alt
-# Mod4 = Window
-
-# TODO:
-# Borders
-# Window-specific commands
-# Colors
-# Interprocess Communication
-# Tab-Through Workspaces
-# i3bar
-
-##Begin Definitions
-# Monitor Names
-set_from_resource $Mon1		mon1	"HDMI-0"
-set_from_resource $Mon2		mon2	$Mon1
-
-# status file
-set_from_resource $status	status	"laptop2"
-
-# Main control Key
-set $mod			Mod4
-set $win			Mod4
-set $alt			Mod1
-
-#Set some windows to float by default
-for_window [class="Wine"] floating enable
-for_window [window_role="Msgcompose"] floating enable
-for_window [title="Eclipse Marketplace "] floating enable
-for_window [title="Friends"] floating enable
-for_window [class=".*Preferences.*"] floating enable
-
-# Focus ignores mouse
-focus_follows_mouse		no
-
-# Only show pop-ups in fullscreen if it belongs to the window
-popup_during_fullscreen		smart
-
-# Wrap if focus shifts off-screen
-force_focus_wrapping		no
-
-# Disable mouse following screen focus
-mouse_warping			none
-
-#Font
-font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
-##End Definitions
-### 01 Workspace
-
-##Begin Workspace-Monitor-Associations
-workspace 1			output $Mon1
-workspace 2			output $Mon2
-workspace 3			output $Mon1
-workspace 4			output $Mon2
-workspace 5			output $Mon1
-workspace 6			output $Mon2
-workspace 7			output $Mon1
-workspace 8			output $Mon2
-workspace 9			output $Mon1
-workspace 10			output $Mon2
-workspace 11			output $Mon1
-workspace 12			output $Mon2
-workspace 13			output $Mon1
-workspace 14			output $Mon2
-workspace 15			output $Mon1
-workspace 16			output $Mon2
-workspace 17			output $Mon1
-workspace 18			output $Mon2
-workspace 19			output $Mon1
-workspace 20			output $Mon2
-workspace 21			output $Mon1
-workspace 22			output $Mon2
-workspace 23			output $Mon1
-workspace 24			output $Mon2
-workspace 25			output $Mon1
-workspace 26			output $Mon2
-workspace 27			output $Mon1
-workspace 28			output $Mon2
-workspace 29			output $Mon1
-workspace 30			output $Mon2
-
-workspace Wine			output $Mon1
-##End Workspace-Monitor-Associations
-### 03 Mount
-
-## Begin Mount Mode Decleration
-mode "mount"
-{
-	bindsym c		exec "udevil mount /dev/sdc1"; mode "default"
-	bindsym d		exec "udevil mount /dev/sdd1"; mode "default"
-	bindsym e		exec "udevil mount /dev/sde1"; mode "default"
-	bindsym f		exec "udevil mount /dev/sdf1"; mode "default"
-	bindsym g		exec "udevil mount /dev/sdg1"; mode "default"
-	bindsym p		exec "go-mtpfs /mnt/phone"; mode "default"
-	bindsym XF86Eject	exec "eject --traytoggle"; mode "default"
-
-	bindsym u		mode "eject"
-
-	bindsym space		mode "default"
-	bindsym Return		mode "default"
-	bindsym Escape		mode "default"
-}
-## End Mount Mode
-### 03 Eject
-
-## Begin Eject Mode Decleration
-mode "eject"
-{
-	bindsym c		exec "udevil umount -l /dev/sdc1"; mode "default"
-	bindsym d		exec "udevil umount -l /dev/sdd1"; mode "default"
-	bindsym e		exec "udevil umount -l /dev/sde1"; mode "default"
-	bindsym f		exec "udevil umount -l /dev/sdf1"; mode "default"
-	bindsym g		exec "udevil umount -l /dev/sdg1"; mode "default"
-	bindsym p		exec "fusermount -u /mnt/phone"; mode "default"
-	bindsym XF86Eject	exec "eject --traytoggle"; mode "default"
-
-	bindsym m		mode "mount"
-
-	bindsym space		mode "default"
-	bindsym Return		mode "default"
-	bindsym Escape		mode "default"
-}
-## End Eject Mode
-### 04 Bindings
-
-##Begin Quick-Key
-bindsym $mod+Return			exec "xterm"
-bindsym $mod+d				exec --no-startup-id "j4-dmenu-desktop --dmenu='dmenu -i -b'"
-bindsym $mod+Shift+q			kill
-bindsym $mod+XF86Sleep			exec "i3lock && sudo systemctl suspend"; reload
-bindsym $mod+Shift+XF86Sleep		exec 'checkHibernate.sh'; reload
-# bindsym XF86Search			
-bindsym XF86Go				exec $BROWSER #internet button
-bindsym Shift+XF86Go			exec "chromium --incognito"
-# bindcode 221				#info button
-bindsym XF86Mail			exec thunderbird
-bindsym XF86Eject			mode "mount"
-bindsym Shift+XF86Eject			mode "eject"
-bindsym XF86AudioPrev			exec "mpc prev"
-bindsym XF86AudioPlay			exec "mpc toggle"
-bindsym XF86AudioNext			exec "mpc next"
-bindsym Shift+XF86AudioPrev		exec "mpc seek -00:01"
-bindsym Shift+XF86AudioNext		exec "mpc seek +00:01"
-bindsym XF86AudioStop			exec "mpc stop"
-bindsym XF86AudioLowerVolume		exec "amixer sset Master 5%-"
-bindsym XF86AudioRaiseVolume		exec "amixer sset Master 5%+"
-bindsym Shift+XF86AudioLowerVolume	exec "amixer sset Master 2%-"
-bindsym Shift+XF86AudioRaiseVolume	exec "amixer sset Master 2%+"
-bindsym $alt+Shift+XF86AudioLowerVolume	exec "mpc volume -2"
-bindsym $alt+Shift+XF86AudioRaiseVolume	exec "mpc volume +2"
-bindsym $alt+XF86AudioLowerVolume	exec "mpc volume -5"
-bindsym $alt+XF86AudioRaiseVolume	exec "mpc volume +5"
-bindsym XF86AudioMute			exec "amixer sset Master toggle"
-bindsym F12				exec "scrot -s ~/screenshot.png"
-bindsym Shift+F12			exec "scrot -s ~/x.png && xclip ~/x.png && rm ~/x.png"
-##End Quick-Key
-
-##Begin Select
-bindsym $mod+Left			focus left
-bindsym $mod+Down			focus down
-bindsym $mod+Up				focus up
-bindsym $mod+Right			focus right
-bindsym $mod+p				focus parent
-bindsym $mod+k				focus child
-bindsym $mod+space			focus mode_toggle
-##End Select
-
-##Begin Move
-bindsym $mod+Shift+Left			move left
-bindsym $mod+Shift+Down			move down
-bindsym $mod+Shift+Up			move up
-bindsym $mod+Shift+Right		move right
-bindsym $mod+Shift+space		floating toggle
-##End Move
-
-##Begin 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+Control+1			workspace 11
-bindsym $mod+Control+2			workspace 12
-bindsym $mod+Control+3			workspace 13
-bindsym $mod+Control+4			workspace 14
-bindsym $mod+Control+5			workspace 15
-bindsym $mod+Control+6			workspace 16
-bindsym $mod+Control+7			workspace 17
-bindsym $mod+Control+8			workspace 18
-bindsym $mod+Control+9			workspace 19
-bindsym $mod+Control+0			workspace 20
-bindsym $mod+Mod1+1			workspace 21
-bindsym $mod+Mod1+2			workspace 22
-bindsym $mod+Mod1+3			workspace 23
-bindsym $mod+Mod1+4			workspace 24
-bindsym $mod+Mod1+5			workspace 25
-bindsym $mod+Mod1+6			workspace 26
-bindsym $mod+Mod1+7			workspace 27
-bindsym $mod+Mod1+8			workspace 28
-bindsym $mod+Mod1+9			workspace 29
-bindsym $mod+Mod1+0			workspace 30
-
-bindsym $mod+Mod2+KP_1			workspace 1
-bindsym $mod+Mod2+KP_2			workspace 2
-bindsym $mod+Mod2+KP_3			workspace 3
-bindsym $mod+Mod2+KP_4			workspace 4
-bindsym $mod+Mod2+KP_5			workspace 5
-bindsym $mod+Mod2+KP_6			workspace 6
-bindsym $mod+Mod2+KP_7			workspace 7
-bindsym $mod+Mod2+KP_8			workspace 8
-bindsym $mod+Mod2+KP_9			workspace 9
-bindsym $mod+Mod2+KP_0			workspace 10
-bindsym $mod+Control+Mod2+KP_1		workspace 11
-bindsym $mod+Control+Mod2+KP_2		workspace 12
-bindsym $mod+Control+Mod2+KP_3		workspace 13
-bindsym $mod+Control+Mod2+KP_4		workspace 14
-bindsym $mod+Control+Mod2+KP_5		workspace 15
-bindsym $mod+Control+Mod2+KP_6		workspace 16
-bindsym $mod+Control+Mod2+KP_7		workspace 17
-bindsym $mod+Control+Mod2+KP_8		workspace 18
-bindsym $mod+Control+Mod2+KP_9		workspace 19
-bindsym $mod+Control+Mod2+KP_0		workspace 20
-bindsym $mod+Mod1+Mod2+KP_1		workspace 21
-bindsym $mod+Mod1+Mod2+KP_2		workspace 22
-bindsym $mod+Mod1+Mod2+KP_3		workspace 23
-bindsym $mod+Mod1+Mod2+KP_4		workspace 24
-bindsym $mod+Mod1+Mod2+KP_5		workspace 25
-bindsym $mod+Mod1+Mod2+KP_6		workspace 26
-bindsym $mod+Mod1+Mod2+KP_7		workspace 27
-bindsym $mod+Mod1+Mod2+KP_8		workspace 28
-bindsym $mod+Mod1+Mod2+KP_9		workspace 29
-bindsym $mod+Mod1+Mod2+KP_0		workspace 30
-
-bindsym $mod+w			workspace Wine
-##End Switch to Workspace
-
-##Being Workspace Shift
-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+Control+1		move container to workspace 11
-bindsym $mod+Shift+Control+2		move container to workspace 12
-bindsym $mod+Shift+Control+3		move container to workspace 13
-bindsym $mod+Shift+Control+4		move container to workspace 14
-bindsym $mod+Shift+Control+5		move container to workspace 15
-bindsym $mod+Shift+Control+6		move container to workspace 16
-bindsym $mod+Shift+Control+7		move container to workspace 17
-bindsym $mod+Shift+Control+8		move container to workspace 18
-bindsym $mod+Shift+Control+9		move container to workspace 19
-bindsym $mod+Shift+Control+0		move container to workspace 20
-bindsym $mod+Shift+Mod1+1		move container to workspace 21
-bindsym $mod+Shift+Mod1+2		move container to workspace 22
-bindsym $mod+Shift+Mod1+3		move container to workspace 23
-bindsym $mod+Shift+Mod1+4		move container to workspace 24
-bindsym $mod+Shift+Mod1+5		move container to workspace 25
-bindsym $mod+Shift+Mod1+6		move container to workspace 26
-bindsym $mod+Shift+Mod1+7		move container to workspace 27
-bindsym $mod+Shift+Mod1+8		move container to workspace 28
-bindsym $mod+Shift+Mod1+9		move container to workspace 29
-bindsym $mod+Shift+Mod1+0		move container to workspace 30
-
-bindsym $mod+Shift+Mod2+KP_End			move container to workspace 1
-bindsym $mod+Shift+Mod2+KP_Down			move container to workspace 2
-bindsym $mod+Shift+Mod2+KP_Next			move container to workspace 3
-bindsym $mod+Shift+Mod2+KP_Left			move container to workspace 4
-bindsym $mod+Shift+Mod2+KP_Begin		move container to workspace 5
-bindsym $mod+Shift+Mod2+KP_Right		move container to workspace 6
-bindsym $mod+Shift+Mod2+KP_Home			move container to workspace 7
-bindsym $mod+Shift+Mod2+KP_Up			move container to workspace 8
-bindsym $mod+Shift+Mod2+KP_Prior		move container to workspace 9
-bindsym $mod+Shift+Mod2+KP_Insert		move container to workspace 10
-bindsym $mod+Shift+Control+Mod2+KP_End		move container to workspace 11
-bindsym $mod+Shift+Control+Mod2+KP_Down		move container to workspace 12
-bindsym $mod+Shift+Control+Mod2+KP_Next		move container to workspace 13
-bindsym $mod+Shift+Control+Mod2+KP_Left		move container to workspace 14
-bindsym $mod+Shift+Control+Mod2+KP_Begin	move container to workspace 15
-bindsym $mod+Shift+Control+Mod2+KP_Right	move container to workspace 16
-bindsym $mod+Shift+Control+Mod2+KP_Home		move container to workspace 17
-bindsym $mod+Shift+Control+Mod2+KP_Up		move container to workspace 18
-bindsym $mod+Shift+Control+Mod2+KP_Prior	move container to workspace 19
-bindsym $mod+Shift+Control+Mod2+KP_Insert	move container to workspace 20
-bindsym $mod+Shift+Mod1+Mod2+KP_End		move container to workspace 21
-bindsym $mod+Shift+Mod1+Mod2+KP_Down		move container to workspace 22
-bindsym $mod+Shift+Mod1+Mod2+KP_Next		move container to workspace 23
-bindsym $mod+Shift+Mod1+Mod2+KP_Left		move container to workspace 24
-bindsym $mod+Shift+Mod1+Mod2+KP_Begin		move container to workspace 25
-bindsym $mod+Shift+Mod1+Mod2+KP_Right		move container to workspace 26
-bindsym $mod+Shift+Mod1+Mod2+KP_Home		move container to workspace 27
-bindsym $mod+Shift+Mod1+Mod2+KP_Up		move container to workspace 28
-bindsym $mod+Shift+Mod1+Mod2+KP_Prior		move container to workspace 29
-bindsym $mod+Shift+Mod1+Mod2+KP_Insert		move container to workspace 30
-##End Workspace Shift
-
-##Begin Resize-Keys
-bindsym $mod+Control+Left		resize grow   left  2px or 2 ppt
-bindsym $mod+Control+Up			resize grow   up    2px or 2 ppt
-bindsym $mod+Control+Right		resize grow   right 2px or 2 ppt
-bindsym $mod+Control+Down		resize grow   down  2px or 2 ppt
-
-bindsym $mod+Mod1+Left			resize shrink right 2px or 2 ppt
-bindsym $mod+Mod1+Up			resize shrink down  2px or 2 ppt
-bindsym $mod+Mod1+Right			resize shrink left  2px or 2 ppt
-bindsym $mod+Mod1+Down			resize shrink up    2px or 2 ppt
-##End Resize-Keys
-
-##Begin Screen Management
-bindsym $mod+h			split h
-bindsym $mod+v			split v
-bindsym $mod+f			fullscreen
-##End Screen Management
-
-##Begin Layouts
-bindsym $mod+s			layout stacking
-bindsym $mod+t			layout tabbed
-bindsym $mod+u			layout default
-##End Layouts
-
-##Begin i3 Controls
-bindsym $mod+Shift+c		reload
-bindsym $mod+Shift+r		restart
-bindsym $mod+Shift+e		exit
-##End i3 Controls
-
-## Begin i3status
-bar {
-	output			$Mon1
-	position		top
-	mode			dock
-#	hidden_state		show
-#	modifier		Mod1
-	tray_output		primary
-#	font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
-#	font pango:DejaVu Sans Mono 10
-	workspace_buttons	yes
-	colors {
-		separator	#BBFF00
-		statusline	#FFFFFF
-		background	#000033
-#					Border	Background	Text
-		focused_workspace	#4c7899	#285577		#ffffff
-		active_workspace	#333333	#5f676a		#ffffff
-		inactive_workspace	#333333	#222222		#888888
-		urgent_workspace	#2f343a	#900000		#ffffff
-	}
-	status_command		i3status -c "~/.i3/i3status.conf"
-}
-## End i3status
-

+ 3 - 0
.i3/generatei3Config.sh

@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cat $(ls $HOME/.i3/*.config | sort) > $HOME/.i3/config

+ 3 - 1
.xsessionrc

@@ -1,4 +1,6 @@
-cat $(ls $HOME/.i3/*.config | sort) > $HOME/.i3/config
+#!/bin/sh
+
+~/.i3/generatei3Config.sh
 
 numlockx