diff options
Diffstat (limited to '.config/sway/config')
-rw-r--r-- | .config/sway/config | 108 |
1 files changed, 50 insertions, 58 deletions
diff --git a/.config/sway/config b/.config/sway/config index 2d1688a..8c57f55 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,8 +1,7 @@ set $mod Mod1 set $mod2 Mod4 set $term alacritty -#set $background /mnt/storage/pictures/desktops/isla-dark.jpg -set $background ~/pictures/desktops/Beach\ -\ Renato\ Giordanelli.jpg +set $background ~/pictures/desktops/mountains_night_sky_dark.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 @@ -21,27 +20,22 @@ exec swayidle -w \ resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock -f -c 000000' -# Launch apps -bindsym $mod+Escape exec qutebrowser -bindsym $mod+Return exec $term - - # Shortcuts +bindsym $mod+Return exec $term bindsym $mod+F11 exec $screenshot bindsym $mod+F12 exec $screenclip # background output * bg $background fill -input "1739:30383:DELL07E6:00_06CB:76AF_Touchpad" { +input type:touchpad { natural_scroll enabled } - # change focus bindsym $mod2+j focus left bindsym $mod2+k focus right -#bindsym $mod2+k focus up -#bindsym $mod2+j focus down +#bindsym $mod+l focus up +#bindsym $mod+semicolon focus down # move focused window bindsym $mod+Shift+j move left @@ -50,14 +44,14 @@ bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move down # split in horizontal orientation -bindsym $mod2+h split h +bindsym $mod+Shift+h split h # split in vertical orientation -bindsym $mod2+v split v +bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+Shift+f fullscreen toggle -bindsym $mod2+f floating toggle +bindsym $mod+f floating toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+Shift+s layout stacking @@ -80,8 +74,6 @@ set $ws7 "7" set $ws8 "8" set $ws9 "9" -#gaps outer 0 -default_border pixel 2 # switch to workspace bindsym $mod+1 workspace $ws1 @@ -119,36 +111,48 @@ 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 [class="tasty.javafx.launcher.LauncherFxApp"] border none +for_window [title="Confirmation"] floating enable +for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable +for_window [app_id="com.nextcloud.desktopclient.nextcloud"] border none for_window [title="Oracle VM VirtualBox Manager"] floating enable -for_window [class="^Pcmanfm"] floating enable +for_window [app_id="thunar"] floating enable +for_window [app_id="soffice"] 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 [app_id="system-config-printer"] floating enable -for_window [class="^Chromium$"] border none for_window [app_id="darktable"] border none -for_window [app_id="org.qutebrowser.qutebrowser"] border none -for_window [app_id="qutebrowser"] border none +for_window [class="Darktable"] border none +for_window [app_id="python3"] border none, floating enable +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="Vivaldi-snapshot"] border none +for_window [app_id="Vivaldi-stable"] border none +for_window [class="Vivaldi"] border none for_window [class="^qutebrowser"] border none +for_window [app_id="org.qutebrowser.qutebrowser"] border none +for_window [app_id="^Alacritty"] border none for_window [class="Slack"] border none -#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 +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 [app_id="mpv"] 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 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 @@ -160,8 +164,8 @@ bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle -#bindsym XF86MonBrightnessUp exec --no-startup-id light -A 10 -#bindsym XF86MonBrightnessDown exec --no-startup-id light -U 10 +bindsym --locked XF86MonBrightnessUp exec --no-startup-id light -A 10 +bindsym --locked XF86MonBrightnessDown exec --no-startup-id light -U 10 set $alsacard 1 @@ -200,48 +204,36 @@ input * { xkb_options ctrl:nocaps } input "1:1:AT_Translated_Set_2_keyboard" { - repeat_delay 200 - repeat_rate 30 + repeat_delay 250 + repeat_rate 25 } -exec --no-startup-id gammastep & -exec --no-startup-id gnome-keyright-daemon & -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' +exec vivaldi-stable --ozone-platform=wayland --enable-features=UseOzonePlatform & +exec alacritty & +exec nextcloud & +exec mpd & # clipboard manager exec wl-paste -t text --watch clipman store --max-items=200 --histpath="~/.local/share/clipman-primary.json" -bindsym $mod+z exec clipman pick --tool="wofi" --max-items=200 --histpath="~/.local/share/clipman-primary.json" +bindsym $mod+c exec alacritty --class 'smsearch' --command bash -c 'fzclip | xargs -r swaymsg -t command exec' -# homemade app launcher -#bindsym $mod+Space exec foot --app-id=launcher bash -c "compgen -c | sort -u | fzf --bind 'tab:up' | xargs -r swaymsg -t command exec" -# -#trying bemenu: -bindsym $mod+Space exec bemenu-run +# app launcher +bindsym $mod+Space exec alacritty --class 'launcher' --command bash -c 'compgen -c | sort -u | fzf | xargs -r swaymsg -t command exec' # pass chooser -bindsym $mod+p exec foot --app-id=launcher bash -c 'pass clip --fzf | xargs -r swaymsg -t command exec' +bindsym $mod+p exec alacritty --class 'launcher' --command 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 -bindsym $mod+s exec foot --app-id=smsearch bash -c 'fzsnip | xargs -r swaymsg -t command exec' - -#clipboard manager -bindsym $mod+c exec foot --app-id=smsearch bash -c 'fzclip | xargs -r swaymsg -t command exec' +bindsym $mod+s exec alacritty --class 'smsearch' --command bash -c 'fzsnip | xargs -r swaymsg -t command exec' -bindsym $mod+b exec foot --app-id=smsearch bash -c 'url=$(cat .config/qute-wired/bookmarks/urls | fzf | cut -d \" \" -f 1) && qutebrowser "$url" | 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' for_window [app_id="^smsearch$"] floating enable, border none, resize set width 80 ppt height 60 ppt, move position 0 px 0 px bindsym $mod+n exec alacritty --class 'smsearch' --command bash -c 'notes' -bindsym $mod2+n exec alacritty --class 'smsearch' --command bash -c 'stocks' - for_window [app_id="^smsearch$"] floating enable, border none, resize set width 80 ppt height 60 ppt, move position 0 px 0 px exec_always ~/.config/waybar/waybar.sh |