vim copilot, waybar config
This commit is contained in:
16
scripts/kanshi-save-profile
Executable file
16
scripts/kanshi-save-profile
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
name=$1
|
||||
|
||||
if [ -z "$name" ]; then
|
||||
echo "Usage: $0 <name>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Saving profile $name"
|
||||
|
||||
echo -e "\nprofile $name {" >> ~/.config/kanshi/config
|
||||
swaymsg -t get_outputs | \
|
||||
jq '.[] | " output '"'"'\(.make) \(.model) \(.serial)'"'"' mode \(.current_mode.width)x\(.current_mode.height) position \(.rect.x),\(.rect.y)"' -r \
|
||||
>> ~/.config/kanshi/config
|
||||
|
||||
Reference in New Issue
Block a user