update keybdinds in modes
This commit is contained in:
		
					parent
					
						
							
								85bbfd3cd1
							
						
					
				
			
			
				commit
				
					
						0ac879405e
					
				
			
		
					 5 changed files with 21 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -1,29 +1,35 @@
 | 
			
		|||
# Keybindings
 | 
			
		||||
# Note, this is for more of a "global" keybindings.  Modes will have their own mode_whatever.conf keybinding
 | 
			
		||||
# Also, I haven't moved everything out of config yet either
 | 
			
		||||
bindsym $mod+m mode "audio"
 | 
			
		||||
bindsym $mod+s mode "save"
 | 
			
		||||
bindsym $mod+n mode "restore"
 | 
			
		||||
bindsym $mod+o exec --no-startup-id rofi -show rofi-sound -modi "rofi-sound:~/.local/bin/rofi-sound-output-chooser"
 | 
			
		||||
 | 
			
		||||
bindsym $mod+Return exec kitty
 | 
			
		||||
 | 
			
		||||
bindsym Control+$alt+l exec xsecurelock
 | 
			
		||||
 | 
			
		||||
bindsym $mod+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'"
 | 
			
		||||
bindsym $mod+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
 | 
			
		||||
 | 
			
		||||
bindsym --release button2 kill
 | 
			
		||||
 | 
			
		||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
 | 
			
		||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
 | 
			
		||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
 | 
			
		||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
 | 
			
		||||
bindsym $mod+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'"
 | 
			
		||||
bindsym $mod+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
 | 
			
		||||
 | 
			
		||||
bindsym Control+$alt+h exec rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
 | 
			
		||||
bindsym $mod+Return exec kitty
 | 
			
		||||
 | 
			
		||||
bindsym $mod+q kill
 | 
			
		||||
 | 
			
		||||
bindsym $mod+b bar mode hide
 | 
			
		||||
bindsym $mod+Shift+b bar mode dock
 | 
			
		||||
 | 
			
		||||
bindsym $mod+h focus left
 | 
			
		||||
bindsym $mod+j focus down
 | 
			
		||||
bindsym $mod+k focus up
 | 
			
		||||
bindsym $mod+l focus right
 | 
			
		||||
bindsym $mod+Left focus left
 | 
			
		||||
bindsym $mod+Right focus right
 | 
			
		||||
 | 
			
		||||
bindsym $mod+Shift+h move left
 | 
			
		||||
bindsym $mod+Shift+j move down
 | 
			
		||||
bindsym $mod+Shift+k move up
 | 
			
		||||
| 
						 | 
				
			
			@ -32,6 +38,7 @@ 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+v split v
 | 
			
		||||
bindsym $mod+f fullscreen toggle
 | 
			
		||||
bindsym $mod+w layout tabbed
 | 
			
		||||
| 
						 | 
				
			
			@ -39,9 +46,11 @@ bindsym $mod+e layout toggle split
 | 
			
		|||
bindsym $mod+Shift+space floating toggle
 | 
			
		||||
bindsym $mod+space focus mode_toggle
 | 
			
		||||
bindsym $mod+a focus parent
 | 
			
		||||
 | 
			
		||||
bindsym $mod+Up exec "~/bin/volume.sh up"
 | 
			
		||||
bindsym $mod+Down exec "~/bin/volume.sh down"
 | 
			
		||||
bindsym $mod+backslash exec "~/bin/volume.sh mtoggle"
 | 
			
		||||
 | 
			
		||||
bindsym $mod+1 workspace number $ws1
 | 
			
		||||
bindsym $mod+2 workspace number $ws2
 | 
			
		||||
bindsym $mod+3 workspace number $ws3
 | 
			
		||||
| 
						 | 
				
			
			@ -52,6 +61,7 @@ bindsym $mod+7 workspace number $ws7
 | 
			
		|||
bindsym $mod+8 workspace number $ws8
 | 
			
		||||
bindsym $mod+9 workspace number $ws9
 | 
			
		||||
bindsym $mod+0 workspace number $ws10
 | 
			
		||||
 | 
			
		||||
bindsym $mod+Shift+1 move container to workspace number $ws1
 | 
			
		||||
bindsym $mod+Shift+2 move container to workspace number $ws2
 | 
			
		||||
bindsym $mod+Shift+3 move container to workspace number $ws3
 | 
			
		||||
| 
						 | 
				
			
			@ -65,4 +75,3 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
 | 
			
		|||
bindsym $mod+Shift+c reload
 | 
			
		||||
bindsym $mod+Shift+r restart
 | 
			
		||||
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'"
 | 
			
		||||
bindsym $mod+r mode "resize"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
bindsym $mod+m mode "audio"
 | 
			
		||||
mode "audio" {
 | 
			
		||||
    bindsym m exec "~/bin/volume.sh mute"
 | 
			
		||||
    bindsym j exec "~/bin/volume.sh down"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
bindsym $mod+r mode "resize"
 | 
			
		||||
mode "resize" {
 | 
			
		||||
        # These bindings trigger as soon as you enter the resize mode
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
# Restore workspace mode.
 | 
			
		||||
bindsym $mod+n mode "restore"
 | 
			
		||||
mode "restore" {
 | 
			
		||||
  bindsym 1 exec "i3-msg 'workspace $ws1; append_layout ~/.config/i3/layout/w1.json'"
 | 
			
		||||
  bindsym 2 exec "i3-msg 'workspace $ws2; append_layout ~/.config/i3/layout/w2.json'"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
# Save workspace mode.
 | 
			
		||||
bindsym $mod+s mode "save"
 | 
			
		||||
mode "save" {
 | 
			
		||||
  bindsym 1 exec "i3-save-tree --workspace=1 > $HOME/.config/i3/layout/w1.json"
 | 
			
		||||
  bindsym 2 exec "i3-save-tree --workspace=2 > $HOME/.config/i3/layout/w2.json"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue