openSUSE / openSUSEway

dotfiles for Sway on openSUSE
MIT License
82 stars 17 forks source link

improve default bindings and tools for openSUSEway #69

Open denisok opened 1 year ago

denisok commented 1 year ago

Hi!

I know that configuring your system is kind of very user specific, still I´d like to share some adjustments I made, that may be useful for others:

*Autotiling I know this is not something all i3/sway users will like, as it is not the default way how sway works, nonetheless I find this tool to be very cool.

*Udiskie This little tool allows to manage storage devices like usb-disk/cellphones....it populates your waybar with a little tray icon -> useful

*Grim + Slurp These tools I use to create screenshot tool. This is how I´ve set it up

# Screen capture 
set $ps1 Print
set $ps2 Control+Print
set $ps3 Alt+Print
set $ps4 Alt+Control+Print 
bindsym $ps1 exec grim
bindsym $ps2 exec grim -g "$(slurp)" 
bindsym $ps3 exec grim $(xdg-user-dir PICTURES)/screenshot_$(date +"%Y%m%d%H%M%S").png
bindsym $ps4 execgrim -g "$(slurp)" $(xdg-user-dir PICTURES)/ps_$(date +"%Y%m%d%H%M%S").png

*Resize The way that sway resizes windows is somehow "clumsy", first you need to enable the "resize" mode and then only you may resize. Ok, this is ok, but there is a way to do it directly:

bindsym    $mod+Control+$left   resize shrink width 40px 
bindsym    $mod+Control+$down   resize shrink height 40px
bindsym    $mod+Control+$up     resize grow height 40px
bindsym    $mod+Control+$right  resize grow width 40px 
bindsym    $mod+Control+Left   resize shrink width 40px 
bindsym    $mod+Control+Down   resize shrink height 40px  
bindsym    $mod+Control+Up     resize grow height 40px 
bindsym    $mod+Control+Right  resize grow width 40px

*Tab Use mod+Tab to toggle through your workspaces

#Toggle Tab 
bindsym $mod+tab workspace next_on_output  
bindsym $mod+Shift+tab workspace prev_on_output 

As I wrote, all of this are of course very personal choices, still I hope that some of you may find this or that useful. Let me know what you think of them, maybe some of these tool may be added to the openSuseway.

Cheers!

Originally posted by @taschenlampe in https://github.com/openSUSE/openSUSEway/discussions/67

krishjainx commented 5 months ago

Hi @denisok, Filippo has some really nice improvements for this config. Would you mind if I made a pull request? Then we can close this issue.

denisok commented 5 months ago

@krishjainx I don't mind - please go ahead!