sway: better locking
This commit is contained in:
parent
5fdab8db4f
commit
d8a3df4e4f
5 changed files with 31 additions and 14 deletions
|
@ -25,7 +25,7 @@ Plug 'preservim/vim-markdown'
|
||||||
Plug 'jeffkreeftmeijer/vim-dim'
|
Plug 'jeffkreeftmeijer/vim-dim'
|
||||||
|
|
||||||
" complete
|
" complete
|
||||||
Plug 'Shougo/deoplete.nvim'
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[theme]
|
[theme]
|
||||||
name = "moonfly"
|
name = "foot"
|
||||||
|
|
||||||
[icons]
|
[icons]
|
||||||
name = "awesome6"
|
name = "awesome6"
|
||||||
|
@ -11,7 +11,7 @@ inboxes = ["/home/grue/mail/mail@oxapentane.com/INBOX", "/home/grue/mail/mail@ox
|
||||||
threshold_warning = 1
|
threshold_warning = 1
|
||||||
threshold_critical = 10
|
threshold_critical = 10
|
||||||
display_type = "new"
|
display_type = "new"
|
||||||
on_click = "foot zsh -c neomutt"
|
on_click = "foot --app-id floating-foot --window-size-chars=150x50 -- zsh -c neomutt"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "backlight"
|
block = "backlight"
|
||||||
|
@ -44,7 +44,7 @@ format = "{1m} {5m} {15m}"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "sound"
|
block = "sound"
|
||||||
on_click = "foot --app-id floating-foot zsh -c pulsemixer"
|
on_click = "foot --app-id floating-foot -- zsh -c pulsemixer"
|
||||||
headphones_indicator = true
|
headphones_indicator = true
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
|
|
|
@ -4,6 +4,5 @@ configuration {
|
||||||
combi-modi: "drun,ssh";
|
combi-modi: "drun,ssh";
|
||||||
terminal: "foot";
|
terminal: "foot";
|
||||||
}
|
}
|
||||||
//@theme "gruvbox-dark-soft"
|
//@theme "DarkBlue"
|
||||||
//@theme "/nix/store/m66hawy506lv8zpr9j6l9s46kgicvva9-rofi-1.7.5+wayland1/share/rofi/themes/Monokai.rasi"
|
@theme "gruvbox-dark-hard"
|
||||||
@theme "/nix/store/g2bj3ngb084x8mjxlix6bwzjy649wbbz-rofi-1.7.5+wayland1/share/rofi/themes/gruvbox-dark-soft.rasi"
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ set $right l
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
set $term foot
|
set $term foot
|
||||||
set $floatterm foot --app-id floating-foot
|
set $floatterm foot --app-id floating-foot
|
||||||
|
set $lock $HOME/.config/sway/lock.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
|
||||||
|
@ -39,9 +40,9 @@ output * bg ./wall.jpg fill
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 300 'swaylock -eFfk -i ~/.config/sway/wall.jpg -s fill' \
|
timeout 300 $lock \
|
||||||
timeout 303 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
timeout 303 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep 'swaylock -eFfk -i ~/.config/sway/wall.jpg -s fill'
|
before-sleep $lock
|
||||||
#
|
#
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||||
# your displays after another 300 seconds, and turn your screens back on when
|
# your displays after another 300 seconds, and turn your screens back on when
|
||||||
|
@ -82,8 +83,8 @@ seat * hide_cursor 5000
|
||||||
bindsym --to-code $mod+Shift+Return exec $floatterm
|
bindsym --to-code $mod+Shift+Return exec $floatterm
|
||||||
for_window [app_id="floating-foot"] floating enable
|
for_window [app_id="floating-foot"] floating enable
|
||||||
|
|
||||||
# Start an editor
|
# Start a python shell
|
||||||
bindsym --to-code $mod+z exec emacsclient -a="" --create-frame
|
bindsym --to-code $mod+z exec $floatterm python
|
||||||
|
|
||||||
# Kill focused window
|
# Kill focused window
|
||||||
bindsym --to-code $mod+Shift+q kill
|
bindsym --to-code $mod+Shift+q kill
|
||||||
|
@ -111,7 +112,8 @@ seat * hide_cursor 5000
|
||||||
bindsym --to-code XF86AudioRaiseVolume exec 'pamixer -i 1'
|
bindsym --to-code XF86AudioRaiseVolume exec 'pamixer -i 1'
|
||||||
bindsym --to-code XF86AudioLowerVolume exec 'pamixer -d 1'
|
bindsym --to-code XF86AudioLowerVolume exec 'pamixer -d 1'
|
||||||
bindsym --to-code XF86AudioMute exec 'pamixer -t'
|
bindsym --to-code XF86AudioMute exec 'pamixer -t'
|
||||||
bindsym --to-code $mod+Delete exec 'swaylock -eFfk -i ~/.config/sway/wall.jpg -s fill'
|
# bindsym --to-code $mod+Delete exec 'swaylock -eFfk -i ~/.config/sway/wall.jpg -s fill'
|
||||||
|
bindsym --to-code $mod+Delete exec $lock
|
||||||
bindsym --to-code Print exec 'grim -g "$(slurp)" - | wl-copy'
|
bindsym --to-code Print exec 'grim -g "$(slurp)" - | wl-copy'
|
||||||
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+m exec 'makoctl dismiss -a'
|
bindsym --to-code $mod+m exec 'makoctl dismiss -a'
|
||||||
|
@ -238,7 +240,7 @@ mode "resize" {
|
||||||
bindsym --to-code $mod+r mode "resize"
|
bindsym --to-code $mod+r mode "resize"
|
||||||
|
|
||||||
## Styling: colors
|
## Styling: colors
|
||||||
include moonfly
|
include colors
|
||||||
|
|
||||||
## Window styling
|
## Window styling
|
||||||
# Border BG Text Indicator Child Border
|
# Border BG Text Indicator Child Border
|
||||||
|
@ -273,7 +275,7 @@ font pango:JuliaMono 8
|
||||||
exec nextcloud --background
|
exec nextcloud --background
|
||||||
exec iwgtk -i
|
exec iwgtk -i
|
||||||
exec blueman-applet
|
exec blueman-applet
|
||||||
exec wlsunset -l 51 -L 14
|
#exec wlsunset -l 51 -L 14
|
||||||
|
|
||||||
# window rules
|
# window rules
|
||||||
# floating
|
# floating
|
||||||
|
@ -286,5 +288,12 @@ for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable; bor
|
||||||
for_window [app_id="CubicSDR"] layout tabbed
|
for_window [app_id="CubicSDR"] layout tabbed
|
||||||
for_window [app_id="org.wireshark.Wireshark"] layout tabbed
|
for_window [app_id="org.wireshark.Wireshark"] layout tabbed
|
||||||
|
|
||||||
|
for_window [app_id="zoom" title="^zoom$"] border none, floating enable
|
||||||
|
# For specific Zoom windows
|
||||||
|
for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable
|
||||||
|
for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700
|
||||||
|
# Open Zoom Meeting windows on a new workspace (a bit hacky)
|
||||||
|
for_window [app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --create, move container to workspace current, floating disable, inhibit_idle open
|
||||||
|
|
||||||
include ./config.d/*
|
include ./config.d/*
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
|
9
sway/.config/sway/lock.sh
Executable file
9
sway/.config/sway/lock.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
img="$HOME/.cache/swaylock.png"
|
||||||
|
|
||||||
|
grim $img
|
||||||
|
gm convert $img -scale 5% -scale 2000% $img
|
||||||
|
swaylock -eFfk -i $img -s fill
|
||||||
|
|
||||||
|
rm -f $img
|
Loading…
Add table
Reference in a new issue