WSL
This commit is contained in:
		
							parent
							
								
									87c9686f55
								
							
						
					
					
						commit
						511b79c285
					
				@ -90,29 +90,29 @@
 | 
				
			|||||||
        "command": "-workbench.action.terminal.toggleTerminal"
 | 
					        "command": "-workbench.action.terminal.toggleTerminal"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "key": "alt+[Minus]",
 | 
					        "key": "ctrl+shift+t",
 | 
				
			||||||
        "command": "workbench.action.focusActiveEditorGroup",
 | 
					        "command": "workbench.action.focusActiveEditorGroup",
 | 
				
			||||||
        "when": "terminalFocus"
 | 
					        "when": "terminalFocus"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "key": "alt+[Minus]",
 | 
					        "key": "ctrl+shift+t",
 | 
				
			||||||
        "command": "workbench.action.terminal.toggleTerminal",
 | 
					        "command": "workbench.action.terminal.toggleTerminal",
 | 
				
			||||||
        "when": "!terminalFocus"
 | 
					        "when": "!terminalFocus"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // navigation between editors / terminals
 | 
					    // navigation between editors / terminals
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "key": "alt+down",
 | 
					        "key": "ctrl+shift+down",
 | 
				
			||||||
        "command": "workbench.action.terminal.focusNext",
 | 
					        "command": "workbench.action.terminal.focusNext",
 | 
				
			||||||
        "when": "terminalFocus && terminalProcessSupported"
 | 
					        "when": "terminalFocus && terminalProcessSupported"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "key": "alt+up",
 | 
					        "key": "ctrl+shift+up",
 | 
				
			||||||
        "command": "workbench.action.terminal.focusPrevious",
 | 
					        "command": "workbench.action.terminal.focusPrevious",
 | 
				
			||||||
        "when": "terminalFocus && terminalProcessSupported"
 | 
					        "when": "terminalFocus && terminalProcessSupported"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "key": "alt+up",
 | 
					        "key": "ctrl+shift+up",
 | 
				
			||||||
        "command": "workbench.action.focusAboveGroup",
 | 
					        "command": "workbench.action.focusAboveGroup",
 | 
				
			||||||
        "when": "!terminalFocus"
 | 
					        "when": "!terminalFocus"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@ -121,7 +121,7 @@
 | 
				
			|||||||
        "command": "-workbench.action.focusAboveGroup"
 | 
					        "command": "-workbench.action.focusAboveGroup"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "key": "alt+down",
 | 
					        "key": "ctrl+shift+down",
 | 
				
			||||||
        "command": "workbench.action.focusBelowGroup",
 | 
					        "command": "workbench.action.focusBelowGroup",
 | 
				
			||||||
        "when": "!terminalFocus"
 | 
					        "when": "!terminalFocus"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@ -131,7 +131,7 @@
 | 
				
			|||||||
        "when": "!terminalFocus"
 | 
					        "when": "!terminalFocus"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "key": "alt+left",
 | 
					        "key": "ctrl+shift+left",
 | 
				
			||||||
        "command": "workbench.action.focusLeftGroup",
 | 
					        "command": "workbench.action.focusLeftGroup",
 | 
				
			||||||
        "when": "!terminalFocus"
 | 
					        "when": "!terminalFocus"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@ -141,7 +141,7 @@
 | 
				
			|||||||
        "when": "!terminalFocus"
 | 
					        "when": "!terminalFocus"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "key": "alt+right",
 | 
					        "key": "ctrl+shift+right",
 | 
				
			||||||
        "command": "workbench.action.focusRightGroup",
 | 
					        "command": "workbench.action.focusRightGroup",
 | 
				
			||||||
        "when": "!terminalFocus"
 | 
					        "when": "!terminalFocus"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
				
			|||||||
@ -62,4 +62,7 @@
 | 
				
			|||||||
    "editor.tabSize": 4,
 | 
					    "editor.tabSize": 4,
 | 
				
			||||||
    "terminal.integrated.scrollback": 10000,
 | 
					    "terminal.integrated.scrollback": 10000,
 | 
				
			||||||
    "files.insertFinalNewline": true,
 | 
					    "files.insertFinalNewline": true,
 | 
				
			||||||
 | 
					    "keyboard.dispatch": "keyCode",
 | 
				
			||||||
 | 
					    "python.analysis.typeCheckingMode": "standard",
 | 
				
			||||||
 | 
					    "python.analysis.autoImportCompletions": true
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -13,7 +13,7 @@ set $terminal xterm
 | 
				
			|||||||
set $mod Mod1
 | 
					set $mod Mod1
 | 
				
			||||||
set $screenlock  ~/.dotfiles/scripts/i3lock_oke
 | 
					set $screenlock  ~/.dotfiles/scripts/i3lock_oke
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# fake-outputs 1920x1080+0+0,1366x768+1920+0
 | 
					fake-outputs 1920x1200+0+0,1920x1200+1920+0,1920x1200+3840+0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exec_always --no-startup-id ~/.dotfiles/scripts/mod_keys
 | 
					exec_always --no-startup-id ~/.dotfiles/scripts/mod_keys
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -35,11 +35,10 @@ default_border pixel 1
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
 | 
					# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
 | 
				
			||||||
# screen before suspend. Use loginctl lock-session to lock your screen.
 | 
					# screen before suspend. Use loginctl lock-session to lock your screen.
 | 
				
			||||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- $screenlock --nofork
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
 | 
					# NetworkManager is the most popular way to manage wireless networks on Linux,
 | 
				
			||||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
 | 
					# and nm-applet is a desktop environment-independent system tray GUI for it.
 | 
				
			||||||
exec --no-startup-id nm-applet
 | 
					# exec --no-startup-id nm-applet
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Use pactl to adjust volume in PulseAudio.
 | 
					# Use pactl to adjust volume in PulseAudio.
 | 
				
			||||||
set $refresh_i3status killall -SIGUSR1 i3status
 | 
					set $refresh_i3status killall -SIGUSR1 i3status
 | 
				
			||||||
@ -149,9 +148,9 @@ for_window [workspace=$ws9] layout stacked
 | 
				
			|||||||
# for_window [class="Chromium"] move container to workspace $ws9
 | 
					# for_window [class="Chromium"] move container to workspace $ws9
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exec --no-startup-id i3-msg 'workspace $ws8; exec thunderbird'
 | 
					#exec --no-startup-id i3-msg 'workspace $ws8; exec thunderbird'
 | 
				
			||||||
exec --no-startup-id protonmail-bridge --no-window
 | 
					#exec --no-startup-id protonmail-bridge --no-window
 | 
				
			||||||
exec --no-startup-id nextcloud
 | 
					#exec --no-startup-id nextcloud
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# must be last
 | 
					# must be last
 | 
				
			||||||
exec --no-startup-id i3-msg 'workspace $ws1; exec "xterm -e \\"$HOME/.winfo.sh; zsh\\""'
 | 
					exec --no-startup-id i3-msg 'workspace $ws1; exec "xterm -e \\"$HOME/.winfo.sh; zsh\\""'
 | 
				
			||||||
 | 
				
			|||||||
@ -39,10 +39,10 @@ good = 50
 | 
				
			|||||||
inputs = ["Tctl"]
 | 
					inputs = ["Tctl"]
 | 
				
			||||||
format = " $icon $max "
 | 
					format = " $icon $max "
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[block]]
 | 
					# [[block]]
 | 
				
			||||||
block = "sound"
 | 
					# block = "sound"
 | 
				
			||||||
driver = "pulseaudio"
 | 
					# driver = "pulseaudio"
 | 
				
			||||||
show_volume_when_muted = false
 | 
					# show_volume_when_muted = false
 | 
				
			||||||
#name = "alsa_output.usb-Yamaha_Corporation_Steinberg_UR22mkII-00.analog-stereo"
 | 
					#name = "alsa_output.usb-Yamaha_Corporation_Steinberg_UR22mkII-00.analog-stereo"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[block]]
 | 
					[[block]]
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.xinitrc
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								.xinitrc
									
									
									
									
									
								
							@ -1,7 +1,7 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
userresources=$HOME/.Xresources
 | 
					userresources=$HOME/.Xresources
 | 
				
			||||||
usermodmap=$HOME/.Xmodmap
 | 
					
 | 
				
			||||||
sysresources=/etc/X11/xinit/.Xresources
 | 
					sysresources=/etc/X11/xinit/.Xresources
 | 
				
			||||||
sysmodmap=/etc/X11/xinit/.Xmodmap
 | 
					sysmodmap=/etc/X11/xinit/.Xmodmap
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.zshrc
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								.zshrc
									
									
									
									
									
								
							@ -105,5 +105,7 @@ source $ZSH/oh-my-zsh.sh
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
 | 
					if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export DONT_PROMPT_WSL_INSTALL=1
 | 
				
			||||||
 | 
					export DE=generic
 | 
				
			||||||
DISPLAY=$(ip route | awk '/^default/{print $3; exit}'):0
 | 
					DISPLAY=$(ip route | awk '/^default/{print $3; exit}'):0
 | 
				
			||||||
PATH="$HOME/.dotfiles/scripts:${PATH}"
 | 
					PATH="$HOME/.dotfiles/scripts:${PATH}"
 | 
				
			||||||
 | 
				
			|||||||
@ -167,7 +167,7 @@ if ! pacman -Qqe | grep pikaur > /dev/null; then
 | 
				
			|||||||
    makepkg -irs
 | 
					    makepkg -irs
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sudo pikaur -Sy --noedit --needed "${packages_to_install[@]}"
 | 
					pikaur -Sy --noedit --needed "${packages_to_install[@]}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "${CORE}" -eq 1 ]; then
 | 
					if [ "${CORE}" -eq 1 ]; then
 | 
				
			||||||
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" || true
 | 
					    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" || true
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user