Update sway config to better match vim config

pull/1/head
Ensar Sarajčić 2021-01-24 21:56:41 +01:00
parent 91223b7584
commit 71dbb5d25f
11 changed files with 69 additions and 5 deletions

View File

@ -15,3 +15,5 @@
**/options/window.state.xml **/options/window.state.xml
**/options/*statistics.xml **/options/*statistics.xml
**/options/*local.xml **/options/*local.xml
**/port
**/extensions

View File

@ -1,6 +1,7 @@
<application> <application>
<component name="FileTypeManager" version="18"> <component name="FileTypeManager" version="18">
<extensionMap> <extensionMap>
<mapping ext="main.kts" type="Kotlin" />
<removed_mapping ext="apk" approved="true" type="ARCHIVE" /> <removed_mapping ext="apk" approved="true" type="ARCHIVE" />
<removed_mapping ext="psd" approved="true" type="Image" /> <removed_mapping ext="psd" approved="true" type="Image" />
</extensionMap> </extensionMap>

View File

@ -119,6 +119,15 @@
</plugin> </plugin>
</value> </value>
</entry> </entry>
<entry key="*.config">
<value>
<plugin>
<option name="myPluginId" value="Lombook Plugin" />
<option name="myPluginName" value="Lombok" />
<option name="myBundled" value="true" />
</plugin>
</value>
</entry>
<entry key="*.cvp"> <entry key="*.cvp">
<value> <value>
<plugin> <plugin>
@ -1217,6 +1226,15 @@
</plugin> </plugin>
</value> </value>
</entry> </entry>
<entry key="lombok.config">
<value>
<plugin>
<option name="myPluginId" value="Lombook Plugin" />
<option name="myPluginName" value="Lombok" />
<option name="myBundled" value="true" />
</plugin>
</value>
</entry>
<entry key="maven.config"> <entry key="maven.config">
<value> <value>
<plugin> <plugin>

View File

@ -1,3 +1,8 @@
# Set mod key to Meta/Windows # Set mod key to Meta/Windows
set $mod Mod4 set $mod Mod4
set $alt Mod1 set $alt Mod1
set $left h
set $right l
set $down j
set $up k

View File

@ -6,7 +6,7 @@ set $processviewer $term -e htop
# start a terminal # start a terminal
bindsym $mod+t exec $term bindsym $mod+Return exec $term
# start todoist # start todoist
bindsym $mod+$alt+t exec todoist bindsym $mod+$alt+t exec todoist

View File

@ -13,14 +13,26 @@ bindsym $mod+Down focus down
bindsym $mod+Up focus up bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
# Change focus with vim keys
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Move around windows with arrow keys # Move around windows with arrow keys
bindsym $mod+Shift+Left move left bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
# Move around windows with vim 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 # split in horizontal orientation
bindsym $mod+h split h bindsym $mod+s split h
# split in vertical orientation # split in vertical orientation
bindsym $mod+v split v bindsym $mod+v split v
@ -43,4 +55,4 @@ bindsym $mod+Shift+minus move scratchpad
# Show the first scratchpad window # Show the first scratchpad window
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
bindsym $mod+s layout toggle tabbed split bindsym $mod+t layout toggle tabbed split

View File

@ -37,3 +37,15 @@ bindsym $mod+Shift+0 move container to workspace $music_workspace
# Alt+Tab like switching of workspaces # Alt+Tab like switching of workspaces
bindsym $mod+Tab workspace next bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev bindsym $mod+Shift+Tab workspace prev
# Arrow workspace switch
bindsym $mod+Control+Right workspace next
bindsym $mod+Control+Down workspace next
bindsym $mod+Control+Left workspace prev
bindsym $mod+Control+Up workspace prev
# Vim keys workspace switch
bindsym $mod+Control+$right workspace next
bindsym $mod+Control+$down workspace next
bindsym $mod+Control+$left workspace prev
bindsym $mod+Control+$up workspace prev

View File

@ -1,6 +1,6 @@
# Assign windows to workspaces # Assign windows to workspaces
assign [class="firefox"] $browser_workspace assign [class="firefox"] $browser_workspace
assign [class="Spotify"] $music_workspace assign [instance="spotify"] $music_workspace
assign [class="Hexchat"] $chat_workspace assign [class="Hexchat"] $chat_workspace
assign [class="Slack"] $chat_workspace assign [class="Slack"] $chat_workspace
assign [class="Gvim"] $editor_workspace assign [class="Gvim"] $editor_workspace

View File

@ -1,6 +1,6 @@
# Define locker script # Define locker script
set $locker ~/bin/lockscreen set $locker ~/bin/lockscreen
bindsym $mod+L exec $locker bindsym $alt+L exec $locker
# IDLE CONFIG # IDLE CONFIG
exec swayidle -w \ exec swayidle -w \

View File

@ -1,3 +1,5 @@
input type:pointer { input type:pointer {
accel_profile flat accel_profile flat
} }
focus_follows_mouse no

View File

@ -6,6 +6,12 @@ mode "resize" {
bindsym Up resize shrink 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 bindsym Right resize grow width 10 px or 10 ppt
# resize with vim 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
# press p to enter precise resize mode # press p to enter precise resize mode
bindsym p mode "resize_precise" bindsym p mode "resize_precise"
@ -21,6 +27,12 @@ mode "resize_precise" {
bindsym Up resize shrink height 1 px or 1 ppt bindsym Up resize shrink height 1 px or 1 ppt
bindsym Right resize grow width 1 px or 1 ppt bindsym Right resize grow width 1 px or 1 ppt
# resize with vim keys
bindsym $left resize shrink width 1 px or 1 ppt
bindsym $down resize grow height 1 px or 1 ppt
bindsym $up resize shrink height 1 px or 1 ppt
bindsym $right resize grow width 1 px or 1 ppt
# go back to normal resize mode with p # go back to normal resize mode with p
bindsym p mode "resize" bindsym p mode "resize"