diff options
-rw-r--r-- | .config/sway/config | 82 |
1 files changed, 45 insertions, 37 deletions
diff --git a/.config/sway/config b/.config/sway/config index 0b2c709..cfc6507 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,7 +1,8 @@ set $mod Mod1 set $mod2 Mod4 -set $term alacritty -set $background /mnt/storage/pictures/desktops/sunrise2.jpg +set $term foot #alacritty +#set $background /mnt/storage/pictures/desktops/isla-dark.jpg +set $background /mnt/storage/pictures/desktops/Beach\ -\ Renato\ Giordanelli.jpg set $screenshot grim ~/pictures/screenshots/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png set $screenclip slurp | grim -g - ~/pictures/screenshots/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png @@ -20,8 +21,12 @@ exec swayidle -w \ resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock -f -c 000000' -# Shortcuts +# Launch apps +bindsym $mod+Escape exec qutebrowser bindsym $mod+Return exec $term + + +# Shortcuts bindsym $mod+F11 exec $screenshot bindsym $mod+F12 exec $screenclip @@ -31,11 +36,12 @@ output * bg $background fill input "2:7:SynPS/2_Synaptics_TouchPad" { natural_scroll enabled } + # change focus bindsym $mod2+j focus left bindsym $mod2+k focus right -#bindsym $mod+l focus up -#bindsym $mod+semicolon focus down +#bindsym $mod2+k focus up +#bindsym $mod2+j focus down # move focused window bindsym $mod+Shift+j move left @@ -44,10 +50,10 @@ bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move down # split in horizontal orientation -bindsym $mod+Shift+h split h +bindsym $mod2+h split h # split in vertical orientation -bindsym $mod+v split v +bindsym $mod2+v split v # enter fullscreen mode for the focused container bindsym $mod+Shift+f fullscreen toggle @@ -74,6 +80,8 @@ set $ws7 "7" set $ws8 "8" set $ws9 "9" +#gaps outer 0 +default_border pixel 2 # switch to workspace bindsym $mod+1 workspace $ws1 @@ -111,40 +119,37 @@ bindsym $mod+Shift+minus move scratchpad # If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+minus scratchpad show -for_window [class="^Chromium$"] border none for_window [title="Oracle VM VirtualBox Manager"] floating enable for_window [class="^Pcmanfm"] floating enable for_window [class="^lxf$"] floating enable +for_window [app_id="pavucontrol"] floating enable, resize set width 50 ppt height 60 ppt +for_window [window_role="pop-up"] floating enable +for_window [class="Yad"] floating enable +for_window [class="feh"] floating enable +for_window [app_id="gedit"] floating enable +for_window [app_id="python3"] border none, floating enable + + +for_window [class="^Chromium$"] border none for_window [app_id="darktable"] border none for_window [class="Darktable"] border none -for_window [app_id="python3"] border none, floating enable for_window [app_id="org.qutebrowser.qutebrowser"] border none -for_window [app_id="kitty"] border none for_window [app_id="qutebrowser"] border none -for_window [class="^URxvt"] border none for_window [app_id="firefoxdeveloperedition"] border none for_window [class="firefoxdeveloperedition"] border none for_window [app_id="Vivaldi-snapshot"] border none for_window [class="^qutebrowser"] border none -for_window [app_id="^Alacritty"] border none for_window [class="Slack"] border none -for_window [class="Pavucontrol"] floating enable -for_window [window_role="pop-up"] floating enable -for_window [class="Yad"] floating enable -for_window [class="feh"] floating enable -for_window [class="QtPass"] floating enable -for_window [class="hangouts.google.com"] floating disable -for_window [class="hangouts.google.com"] border normal -for_window [app_id="gedit"] floating enable +#for_window [app_id="Alacritty"] floating enable, resize set width 53 ppt height 100 ppt +for_window [app_id="Alacritty"] border none +for_window [app_id="mpv"] border none +for_window [app_id="foot"] border none assign [class="qutebrowser"] $ws2 assign [app_id="org.qutebrowser.qutebrowser"] $ws2 -assign [class="Firefox Developer"] $ws4 assign [class="Slack"] $ws6 -assign [class="Vivaldi"] $ws2 assign [class="Darktable"] $ws3 assign [app_id="darktable"] $ws3 -assign [title="Oracle VM VirtualBox Manager"] $ws4 #workspace switching bindsym $mod+k workspace next @@ -196,39 +201,42 @@ input * { xkb_options ctrl:nocaps } input "1:1:AT_Translated_Set_2_keyboard" { - repeat_delay 250 - repeat_rate 25 + repeat_delay 200 + repeat_rate 30 } #exec xrdb ~/.Xresources exec --no-startup-id gammastep -exec --no-startup-id vivaldi-snapshot --ozone-platform=wayland --enable-features=UseOzonePlatform,UseSkiaRenderer,Vulkan & +#exec --no-startup-id vivaldi-snapshot --ozone-platform=wayland --enable-features=UseOzonePlatform,UseSkiaRenderer,Vulkan & #exec --no-startup-id urxvt & -exec --no-startup-id alacritty & +#exec --no-startup-id alacritty & exec --no-startup-id nextcloud & + +# old i3 X11 stuff #exec --no-startup-id xset r rate 250 25 & #exec --no-startup-id xset -b #exec --no-startup-id xcape -e 'Control_L=Escape' # clipboard manager -exec wl-paste -t text --watch clipman store --max-items=60 --histpath="~/.local/share/clipman-primary.json" -# exec wl-paste -w 'wl-paste >> ~/.clipboard' -bindsym $mod+h exec clipman pick --tool="wofi" --max-items=60 --histpath="~/.local/share/clipman-primary.json" +exec wl-paste -t text --watch clipman store --max-items=200 --histpath="~/.local/share/clipman-primary.json" +bindsym $mod+h exec clipman pick --tool="wofi" --max-items=200 --histpath="~/.local/share/clipman-primary.json" # app launcher -bindsym $mod+Space exec alacritty --class 'launcher' --command bash -c 'compgen -c | sort -u | fzf | xargs -r swaymsg -t command exec' +bindsym $mod+Space exec foot --app-id=launcher bash -c "compgen -c | sort -u | fzf --bind 'tab:up' | xargs -r swaymsg -t command exec" # pass chooser -bindsym $mod+p exec alacritty --class 'launcher' --command bash -c 'pass clip --fzf | xargs -r swaymsg -t command exec' +bindsym $mod+p exec foot --app-id=launcher bash -c 'pass clip --fzf | xargs -r swaymsg -t command exec' for_window [app_id="^launcher$"] floating enable, border none, resize set width 25 ppt height 20 ppt, move position 0 px 0 px -#snippet manager old -#bindsym $mod+s exec alacritty --class 'launcher' --command bash -c 'pet exec | wl-copy | xargs -r swaymsg -t command exec' - #snippet manager -bindsym $mod+s exec alacritty --class 'smsearch' --command bash -c 'fzsnip | xargs -r swaymsg -t command exec' +bindsym $mod+s exec foot --app-id=smsearch bash -c 'fzsnip | xargs -r swaymsg -t command exec' + +#clipboard manager + + +bindsym $mod+z exec foot --app-id=smsearch bash -c 'fzclip | xargs -r swaymsg -t command exec' -bindsym $mod+b exec alacritty --class 'smsearch' --command bash -c 'url=$(cat .config/qutebrowser/bookmarks/urls | fzf | cut -d \" \" -f 1) && qutebrowser "$url" | xargs -r swaymsg -t command exec' +bindsym $mod+b exec foot --app-id=smsearch bash -c 'url=$(cat .config/qutebrowser/bookmarks/urls | fzf | cut -d \" \" -f 1) && qutebrowser "$url" | xargs -r swaymsg -t command exec' for_window [app_id="^smsearch$"] floating enable, border none, resize set width 80 ppt height 60 ppt, move position 0 px 0 px |