feat: bindsym to seat cursor
This commit is contained in:
parent
d928f41080
commit
0738c7409d
14
sway/config
14
sway/config
@ -13,7 +13,7 @@ set $menu rofi -show drun
|
||||
# run fcitx5
|
||||
exec_always fcitx5 -d
|
||||
# send signal to i3-blocks so the volume will update soon
|
||||
exec pkill -SIGRTMIN+1 i3blocks
|
||||
exec_always pkill -SIGRTMIN+1 i3blocks
|
||||
### Input configuration
|
||||
input "type:keyboard" {
|
||||
repeat_delay 250
|
||||
@ -37,8 +37,8 @@ output * bg /home/Rong/Pictures/Linux-GNU-Unix-unixporn-material-minimal-materia
|
||||
# Example configuration:
|
||||
#
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaylock -f -c 000000' \
|
||||
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||
timeout 450 'swaylock -f -c 000000' \
|
||||
timeout 500 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||
before-sleep 'swaylock -f -c 000000'
|
||||
#
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
@ -175,19 +175,21 @@ bindsym $mod+r mode "resize"
|
||||
# Utilities:
|
||||
#
|
||||
# Special key to take a screenshot with grim
|
||||
bindsym Print exec grim
|
||||
bindsym Print exec grim -g "$(slurp)"
|
||||
# control your volume
|
||||
bindsym $mod+minus exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- && wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/[^0-9]//g; s/^0//' > $wobfifo;exec pkill -SIGRTMIN+1 i3blocks
|
||||
bindsym $mod+equal exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ && wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/[^0-9]//g; s/^0//' > $wobfifo;exec pkill -SIGRTMIN+1 i3blocks
|
||||
# Start color picker
|
||||
bindsym $mod+Shift+p exec ~/.local/bin/wpicker
|
||||
# Start wf-recorder with slurp to select a specific part of the screen
|
||||
bindsym Ctrl+Print exec wf-recorder -g "$$(/usr/bin/slurp)" -f ~/Videos/records/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4");exec notify-send "Start recording..."
|
||||
bindsym Ctrl+Print exec wf-recorder -f ~/Videos/records/recording_$(date +"%Y-%m-%d-%H:%M.avi");exec notify-send "Recording"
|
||||
bindsym Ctrl+Shift+Print exec killall -s SIGINT wf-recorder;exec notify-send "Stop recording!"
|
||||
# Make sure that some apps are always floating
|
||||
for_window [app_id="simulator"] floating enable
|
||||
for_window [app_id="simulator"] swaymsg move position center
|
||||
for_window [app_id="simulator"] swaymsg resize set 70ppt 70ppt
|
||||
# seat cursor
|
||||
bindsym $mod+slash seat - cursor set 9999 9999
|
||||
#
|
||||
# Status Bar:
|
||||
#
|
||||
@ -219,7 +221,7 @@ client.urgent #e6da00 #e6da00 #f1f1f1 #9962b7
|
||||
client.background #191919
|
||||
|
||||
# Send signal to i3-blocks so that the vol will update once sway started
|
||||
exec pkill -SIGRTMIN+1 i3blocks
|
||||
exec_always pkill -SIGRTMIN+1 i3blocks
|
||||
# autotiling
|
||||
exec_always autotiling -w 1 3 5 7 9
|
||||
# remove titlebar
|
||||
|
Loading…
x
Reference in New Issue
Block a user