Skip to content

Instantly share code, notes, and snippets.

@CarsonSlovoka
Last active November 28, 2024 06:11
Show Gist options
  • Save CarsonSlovoka/da9e2d01b7a9f24a973f042a21c329f1 to your computer and use it in GitHub Desktop.
Save CarsonSlovoka/da9e2d01b7a9f24a973f042a21c329f1 to your computer and use it in GitHub Desktop.
~./.config/sway/config
output DVI-D-1 mode 1920x1080@60Hz
output DP-1 mode 1920x1080@60Hz
bindsym $left resize shrink width 200px
bindsym $down resize grow height 200px
bindsym $up resize shrink height 200px
bindsym $right resize grow width 200px
bindsym Left resize shrink width 200px
bindsym Down resize grow height 200px
bindsym Up resize shrink height 200px
bindsym Right resize grow width 200px
bindsym Control+Print exec grim -g "$(slurp)" - | wl-copy
bindsym $mod+Print exec \
export SAVE_FILE_NAME="$(zenity --entry --title='filename' --text='input filename')" && \
[ ! -f "$HOME/$SAVE_FILE_NAME.webp" ] && \
grim -g "$(slurp)" - | cwebp -q 11 -o "$HOME/$SAVE_FILE_NAME.webp" -- - && \
zenity --info --text="$(ls -l $HOME/$SAVE_FILE_NAME.webp)"
bindsym Control+$mod+Print exec \
export SAVE_FILE_NAME="$(zenity --entry --title='filename' --text='input filenmae')" && \
export QUALITY="$(zenity --entry --title='quality' --text='quality')" && \
[ ! -f "$HOME/$SAVE_FILE_NAME.webp" ] && \
grim -g "$(slurp)" - | cwebp -q "$QUALITY" -o "$HOME/$SAVE_FILE_NAME.webp" -- - && \
zenity --info --text="$(ls -l $HOME/$SAVE_FILE_NAME.webp)"
exec_always fcitx5 -d --replace
# swaymsg -t get_outputs
# 先安排每一個顯示器對應的工作區名稱
workspace 1 output DVI-D-1
workspace 2 output DP-1
workspace 3 output DP-1
workspace 4 output DP-1
workspace 2
exec_always --no-startup-id firefox --window --new-tab https://discord.com/channels/@me
exec_always --no-startup-id firefox --window --new-tab https://stackoverflow.com/
exec_always --no-startup-id firefox --window --new-tab https://news.google.com
workspace 3
exec_always --no-startup-id $term
exec_always --no-startup-id google-chrome https://boshiamy.then.tw/query/ # 嘸蝦米查碼
exec_always --no-startup-id google-chrome chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html#/ # line
exec_always --no-startup-id gnome-system-monitor
workspace 4
exec_always --no-startup-id kolourpaint
workspace 1
exec_always --no-startup-id goland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment