2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

よりそうAdvent Calendar 2023

Day 5

SwayFXを試す

Last updated at Posted at 2023-12-04

SwayFXとは

タイル型ウィンドウマネージャ及びWaylandコンポジタのSwayのフォーク
https://github.com/WillPower3309/swayfx

下記のようなことができるようになる

  • ぼかし
  • 角、ボーダー、タイトルバーの丸みにアンチエイリアスをかける
  • フォーカスされていないウィンドウを暗くする

環境

いわゆる中二病エンジニア

導入

yay -S swayfx

コンフィグ

# 例
blur enable
blur_passes 3
blur_radius 2
corner_radius 10

shadows enable
shadow_blur_radius 25

default_dim_inactive 0.2
dim_inactive_colors.unfocused #000000FF
dim_inactive_colors.urgent #900000FF

また、/usr/share/swayディレクトリを指定している場合は

/usr/share/swayfx/

に変更する。

# スクリーンショット
- bindsym Mod4+Shift+X exec /usr/share/sway/scripts/grimshot --notify save window $HOME/Downloads/screenshot_$(date "+%y%m%d%H%M%S").png
+ bindsym Mod4+Shift+X exec /usr/share/swayfx/scripts/grimshot --notify save window $HOME/Downloads/screenshot_$(date "+%y%m%d%H%M%S").png

プレビュー

Videotogif.gif

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?