sway config updates
This commit is contained in:
parent
4bfcaeb982
commit
340de2ccbe
6 changed files with 124 additions and 8 deletions
|
@ -4,6 +4,9 @@ theme = "foot"
|
||||||
[icons]
|
[icons]
|
||||||
icons = "material-nf"
|
icons = "material-nf"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "scratchpad"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "time"
|
block = "time"
|
||||||
format = " $icon $timestamp.datetime(f:'%a %F %R', l:nl_NL) "
|
format = " $icon $timestamp.datetime(f:'%a %F %R', l:nl_NL) "
|
||||||
|
@ -57,7 +60,8 @@ format = " $icon{ | $ip $ipv6 }"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "memory"
|
block = "memory"
|
||||||
format = " $icon $mem_used_percents "
|
warning_swap = 100.0
|
||||||
|
critical_swap = 100.0
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "load"
|
block = "load"
|
||||||
|
|
|
@ -10,5 +10,5 @@ profile {
|
||||||
# Work
|
# Work
|
||||||
profile {
|
profile {
|
||||||
output eDP-1 enable position 0,1200 adaptive_sync on
|
output eDP-1 enable position 0,1200 adaptive_sync on
|
||||||
output "Samsung Electric Company LF24T450G HNMTA01726" enable mode 1920x1200@60Hz position 0,0 adaptive_sync on
|
output "Samsung Electric Company LF24T450G HNMTA01726" enable mode 1920x1200@74.939Hz position 0,0 adaptive_sync on
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ set $right l
|
||||||
set $term foot
|
set $term foot
|
||||||
set $floatterm foot -a floating-foot
|
set $floatterm foot -a floating-foot
|
||||||
set $lock $HOME/.config/sway/lock.sh
|
set $lock $HOME/.config/sway/lock.sh
|
||||||
|
set $locknow $HOME/.config/sway/locknow.sh
|
||||||
|
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
||||||
|
@ -100,8 +101,7 @@ seat * hide_cursor 5000
|
||||||
bindsym --to-code $mod+Print exec 'grim -g "$(slurp)" ~/Pictures/$(date +"%Y-%m-%d-%H-%M-%S").png'
|
bindsym --to-code $mod+Print exec 'grim -g "$(slurp)" ~/Pictures/$(date +"%Y-%m-%d-%H-%M-%S").png'
|
||||||
bindsym --to-code $mod+Mod1+p exec 'grim -g "$(slurp)" ~/Pictures/$(date +"%Y-%m-%d-%H-%M-%S").png'
|
bindsym --to-code $mod+Mod1+p exec 'grim -g "$(slurp)" ~/Pictures/$(date +"%Y-%m-%d-%H-%M-%S").png'
|
||||||
# Notifications
|
# Notifications
|
||||||
bindsym --to-code $mod+m exec 'makoctl dismiss -a'
|
bindsym --to-code $mod+m exec 'swaync-client -t'
|
||||||
bindsym --to-code $mod+Shift+m exec 'makoctl restore'
|
|
||||||
# Check mail
|
# Check mail
|
||||||
bindsym --to-code $mod+n exec 'systemctl --user start mbsync.service'
|
bindsym --to-code $mod+n exec 'systemctl --user start mbsync.service'
|
||||||
|
|
||||||
|
@ -309,10 +309,8 @@ font pango:Hack 9
|
||||||
# Startup applications
|
# Startup applications
|
||||||
exec iwgtk -i
|
exec iwgtk -i
|
||||||
exec blueman-applet
|
exec blueman-applet
|
||||||
# exec wlsunset -l 52 -L 5
|
|
||||||
# exec gammastep-indicator
|
|
||||||
exec_always pkill kanshi; exec kanshi
|
exec_always pkill kanshi; exec kanshi
|
||||||
# exec udiskie --tray --no-automount
|
exec swaync
|
||||||
|
|
||||||
include ./config.d/*
|
include ./config.d/*
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
|
|
@ -18,5 +18,5 @@ for_window [app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --
|
||||||
# kill firefox sharing indicator
|
# kill firefox sharing indicator
|
||||||
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
|
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
|
||||||
# fix picture-in-picture behaviour
|
# fix picture-in-picture behaviour
|
||||||
for_window [app_id="firefox" title="Picture-in-Picture"] floating enable, sticky enable, border none
|
for_window [app_id="firefox" title="Picture-in-Picture"] floating enable, sticky enable
|
||||||
|
|
||||||
|
|
9
sway/.config/sway/locknow.sh
Executable file
9
sway/.config/sway/locknow.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
swayidle -w \
|
||||||
|
timeout 1 'swaymsg "output * dpms off"' \
|
||||||
|
resume 'swaymsg "output * dpms on"' \
|
||||||
|
before-sleep '$HOME/.config/sway/lock.sh'
|
||||||
|
|
||||||
|
pid=$!
|
||||||
|
kill pid
|
105
sway/.config/swayimg/config
Normal file
105
sway/.config/swayimg/config
Normal file
|
@ -0,0 +1,105 @@
|
||||||
|
# https://git.deuill.org/deuill/dotfiles
|
||||||
|
################################################################################
|
||||||
|
# Viewer mode configuration
|
||||||
|
################################################################################
|
||||||
|
[viewer]
|
||||||
|
# Window background color (RGBA)
|
||||||
|
window = #00000000
|
||||||
|
# Background for transparent images (grid/RGBA)
|
||||||
|
transparency = grid
|
||||||
|
# Default image scale (optimal/fit/width/height/fill/real)
|
||||||
|
scale = optimal
|
||||||
|
# Fix position of the image on the window surface (yes/no)
|
||||||
|
fixed = yes
|
||||||
|
# Anti-aliasing (yes/no)
|
||||||
|
antialiasing = no
|
||||||
|
# Run slideshow at startup (yes/no)
|
||||||
|
slideshow = no
|
||||||
|
# Slideshow image display time (seconds)
|
||||||
|
slideshow_time = 3
|
||||||
|
# Number of previously viewed images to store in cache
|
||||||
|
history = 1
|
||||||
|
# Number of preloaded images (read ahead)
|
||||||
|
preload = 1
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Gallery mode configuration
|
||||||
|
################################################################################
|
||||||
|
[gallery]
|
||||||
|
# Max size of the thumbnail (pixels)
|
||||||
|
size = 300
|
||||||
|
# Max number of thumbnails in cache, 0 to unlimit
|
||||||
|
cache = 100
|
||||||
|
# Fill the entire tile with thumbnail (yes/no)
|
||||||
|
fill = yes
|
||||||
|
# Use anti-aliasing for thumbnails (yes/no)
|
||||||
|
antialiasing = no
|
||||||
|
# Background color of the window (RGBA)
|
||||||
|
window = #00000000
|
||||||
|
# Background color of the tile (RGBA)
|
||||||
|
background = #202020ff
|
||||||
|
# Background color of the selected tile (RGBA)
|
||||||
|
select = #333333ff
|
||||||
|
# Border color of the selected tile (RGBA)
|
||||||
|
border = #ab4642ff
|
||||||
|
# Shadow color of the selected tile (RGBA)
|
||||||
|
shadow = #00000000
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Font configuration
|
||||||
|
################################################################################
|
||||||
|
[font]
|
||||||
|
# Font name
|
||||||
|
name = Iosevka
|
||||||
|
# Font size (pt)
|
||||||
|
size = 18
|
||||||
|
# Font color (RGBA)
|
||||||
|
color = #fefefeff
|
||||||
|
# Shadow color (RGBA)
|
||||||
|
shadow = #333333ff
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Image meta info scheme (format, size, EXIF, etc)
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# Display scheme for viewer mode (position = content)
|
||||||
|
[info.viewer]
|
||||||
|
top_left = +name,+format,+filesize,+imagesize,+exif
|
||||||
|
top_right = index
|
||||||
|
bottom_left = scale,frame
|
||||||
|
bottom_right = status
|
||||||
|
|
||||||
|
# Display scheme for gallery mode (position = content)
|
||||||
|
[info.gallery]
|
||||||
|
top_left = none
|
||||||
|
top_right = none
|
||||||
|
bottom_left = none
|
||||||
|
bottom_right = name,status
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Viewer mode key binding configuration.
|
||||||
|
################################################################################
|
||||||
|
[keys.viewer]
|
||||||
|
h = prev_file
|
||||||
|
j = zoom -10
|
||||||
|
k = zoom +10
|
||||||
|
l = next_file
|
||||||
|
|
||||||
|
Shift+h = prev_dir
|
||||||
|
Shift+j = rotate_left
|
||||||
|
Shift+k = rotate_right
|
||||||
|
Shift+l = next_dir
|
||||||
|
|
||||||
|
Alt+h = step_left 10
|
||||||
|
Alt+j = step_down 10
|
||||||
|
Alt+k = step_up 10
|
||||||
|
Alt+l = step_right 10
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Gallery mode key binding configuration.
|
||||||
|
################################################################################
|
||||||
|
[keys.gallery]
|
||||||
|
h = step_left
|
||||||
|
j = step_down
|
||||||
|
k = step_up
|
||||||
|
l = step_right
|
Loading…
Add table
Reference in a new issue