💾 Archived View for mkl-wlod.srht.site › repo › tree › sway › .config › sway › config.txt captured on 2022-06-04 at 00:46:15.

View Raw

More Information

⬅️ Previous capture (2022-03-01)

🚧 View Differences

-=-=-=-=-=-=-

### Variables
set $mod Mod4
set $alt Mod1
set $laptop eDP-1
set $external DP-5
set $left h
set $down j
set $up k
set $right l
set $term alacritty
set $menu ~/.local/bin/bemenu_run_history 
# set $menu exec $term --class=launcher -e ~/.local/bin/sway-launcher-desktop.sh
set $gotop exec $term --class=gt -e /bin/gotop
set $mixer exec $term --class=pm -e /bin/pulsemixer
### Font
font pango:Hack 12px 
### Settings for specific window
for_window [class="Galculator"] floating enable,
for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 2
for_window [app_id="^gt$"] floating enable, sticky enable, resize set 80 ppt 80 ppt, border pixel 2
for_window [app_id="^pm$"] floating enable, sticky enable, resize set 80 ppt 80 ppt, border pixel 2
for_window [app_id="telegramdesktop"] move scratchpad, scratchpad show, resize set 90 ppt 50 ppt
### Output configuration
output * bg ~/Media/Pictures/wallpaper.jpg fill
output $laptop position 0,0 
output $external pos 1360,0 resolution 1680x1050@74.892Hz bg ~/Media/Pictures/wallpaper2.jpg fill 
### Idle configuration
exec swayidle -w \
         timeout 3600 "light -S 1"\
         timeout 4000 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
         before-sleep 'swaylock -u -i $external:/home/michal/Media/Pictures/lock1.png -s fill -i /home/michal/Media/Pictures/lock.png | playerctl stop'
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
### Input configuration
input * {
	xkb_layout "pl"
	xkb_options "caps:escape"
}
input "1739:0:Synaptics_TM3075-002" {
	events disabled
}
input "1386:768:Wacom_Bamboo_One_S_Pen" {
	pointer_accel 1
}
input "1386:886:Wacom_Intuos_BT_S_Pen" {
	pointer_accel 1
}
seat * hide_cursor 2000
### Key bindings
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $alt+space exec $menu
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file of sway and mako
bindsym $mod+Shift+c exec "swaymsg reload | makoctl reload"
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec "swaymsg exit"
## My keybidings
# Selected region screenshot
bindsym $mod+Shift+s exec 'grim -g "$(slurp -d)" - | swappy -f -'
# All monitor screenshot 
bindsym $mod+Print exec "grim - | swappy -f -"
# Play-pause Spotify
bindsym --locked $alt+F1 exec "playerctl -p spotify play-pause"
# Play next Spotify song 
bindsym --locked $alt+F3 exec "playerctl -p spotify next"
# Play previous Spotify song 
bindsym --locked $alt+F2 exec "playerctl -p spotify previous"
# Play-pause of current player
bindsym --locked $alt+Shift+F1 exec "playerctl play-pause"
# Play next song of current player
bindsym --locked $alt+Shift+F3 exec "playerctl next"
# Play previous song of current player
bindsym --locked $alt+Shift+F2 exec "playerctl previous"
# Volume up by 5 points
bindsym --locked XF86AudioRaiseVolume exec "ponymix increase 5"
# Volume max
bindsym --locked XF86AudioRaiseVolume+Shift exec "ponymix set-volume 100"
# Volume down by 5 points
bindsym --locked XF86AudioLowerVolume exec "ponymix decrease 5" 
# Volume lowest
bindsym --locked XF86AudioLowerVolume+Shift exec "ponymix set-volume 1"
# Turn on-off volume 
bindsym --locked XF86AudioMute exec "ponymix --output toggle"
# Turn on-off microphone 
bindsym --locked XF86AudioMicMute exec "ponymix --input toggle"
# Incrase brightness by 5 point
bindsym --locked XF86MonBrightnessUp exec "light -A 3"
# Decrase brightness by 5 point
bindsym --locked XF86MonBrightnessDown exec "light -U 3"
# Set brightness to minimum
bindsym --locked XF86MonBrightnessDown+Shift exec "light -S 0.2"
# Set brightness to maximum
bindsym --locked XF86MonBrightnessUp+Shift exec "light -S 100"
# Open activity monitor
bindsym $mod+Shift+Escape exec "$gotop" 
# Open pulsemixer
bindsym $mod+Shift+m exec "$mixer"
# Turn on-off laptop monitor
bindsym $mod+p exec 'swaymsg "output $laptop toggle"'
# Turn on-off external monitor
bindsym $mod+Shift+p exec 'swaymsg "output $external toggle"'
# Reboot
bindsym $alt+Control+Delete exec "reboot"
# Hibernation | stop player | lock screen
bindsym $mod+Shift+Delete exec "swaylock -u -i $external:/home/michal/Media/Pictures/lock1.png -s fill -i /home/michal/Media/Pictures/lock.png | systemctl hibernate"
# Lock screen
bindsym $mod+Control+l exec "swaylock -u -i $external:/home/michal/Media/Pictures/lock1.png -s fill -c 222222 -i /home/michal/Media/Pictures/lock.png" 
# Dismiss all current notifications
bindsym $mod+c exec "makoctl dismiss -a"
# Set "Night shift"
bindsym $mod+Home exec "gammastep -PO 2000K"
# Shut down "Night shift"
bindsym $mod+End exec "killall -9 gammastep"
# Dissmiss notification deamon (mako)
bindsym $mod+n exec "~/.local/bin/dissmissmako" 
# Open mako
bindsym $mod+Shift+n exec "mako"
# Open spotify in offline mode
bindsym $mod+$alt+s exec "~/.local/bin/nospotify"
# Move workspace to laptop monitor
bindsym $mod+Shift+Left move workspace to output $laptop 
# Move workspace to external monitor
bindsym $mod+Shift+Right move workspace to output $external 
# Autostart
exec "udiskie"
exec "mako"
exec "wl-paste -t text --watch clipman store"
# xwayland disable
### Moving around:
# Move your focus around
focus_follows_mouse no
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
### Workspaces:
# Switch to workspace
bindsym $mod+Left workspace prev
bindsym $mod+Right workspace next
bindsym $mod+Tab workspace back_and_forth
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
# Back to previous workspace when invoke again current workspace 
workspace_auto_back_and_forth yes
### Layout stuff:
# $mod+b or $mod+v, for horizontal and vertical splits
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+e layout toggle split
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
### Gaps and borders
gaps inner 5
gaps outer 5
smart_gaps off
smart_borders on
default_border pixel 2
### Scratchpad:
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
bindsym $mod+minus scratchpad show
### Resizing containers:
mode "resize" {
    bindsym $left resize shrink width 10px
    bindsym $down resize grow height 10px
    bindsym $up resize shrink height 10px
    bindsym $right resize grow width 10px
    # Return to default mode
    bindsym Return mode "default"
    bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
### Colors
set $bgb            #282a36
set $bg             #111111cc
set $fg             #f8f8f2
set $tf             #f8f8f2AA
set $hi             #f1fa7c
set $tx             #f2f2f2
set $pk             #ff79c6
set $yw             #f1fa7c
set $gn             #50fa7b
set $rd             #ff5555
set $id             #b57614
# set some nice colors      border  background  text  indicator
client.focused              $bgb    $id         $tx     $gn
client.unfocused            $bg     $bg         $tf     $id
client.focused_inactive     $bg     $bg         $pk     $id
client.urgent               $yw     $yw         $tx     $rd
### Status Bar:
bar {
    position top
    height 20
    mode hide
    modifier $mod+Control
    workspace_min_width 30
    tray_output none
    status_command while /home/michal/.config/sway/status.sh; do sleep 1; done
    font pango: Hack, Font Awesome 5 Free 12px 
    colors {
        statusline #bbbbbb
        background #222222
	focused_workspace #b57614 #b57614 #ffffff
	inactive_workspace #222222 #222222 #bbbbbb
	urgent_workspace #2fb538 #2fb538 #2f2f2f
    }
    {
    position top
    height 20
    output $external
    workspace_min_width 30
    tray_output none
    status_command while /home/michal/.config/sway/status-external.sh; do sleep 1; done
    font pango: Hack, Font Awesome 5 Free 12px 
    colors {
        statusline #bbbbbb
        background #222222cc
	focused_workspace #b57614 #b57614 #ffffff
	inactive_workspace #222222 #222222cc #bbbbbb
	urgent_workspace #2fb538 #2fb538 #2f2f2f
    }