今日、Linux のアプリケーションランチャー rofi を見つけました。これを使用すると、ウィンドウの切り替えやプログラムの起動が高速化されます。
私はそれをwmctrl
と組み合わせて使用しています。
私の使用方法:
1.Archlinux のインストール
yay -S rofi
2. カスタムショートカットキーの追加、ホットキーはalt
+space
でrofi -show
をトリガーします。
3.alt
+space
を押し、shift
+left
またはright
を使用してモードを切り替えます。
テーマの変更とアイコンの表示:
1. 設定ファイルの生成
mkdir -p ~/.config/rofi
rofi -dump-config > ~/.config/rofi/config.rasi
2. アイコンの表示
sed -i '8c show-icons: true;' ~/.config/rofi/config.rasi
3. テーマの変更
参考:https://github.com/lr-tech/rofi-themes-collection#installing-themes
私のwmctrl
の設定例:
xprop WM_CLASS
を使用してプレフィックスを取得します。
alias chrome="wmctrl -x -a google-chrome || google-chrome-stable > /dev/null 2>&1 &"
alias note="wmctrl -x -a obsidian || /usr/bin/obsidian > /dev/null 2>&1 &"
alias codew="wmctrl -x -a code || /opt/code/code > /dev/null 2>&1 &"
alias idea="wmctrl -x -a jetbrains-idea || /opt/idea/bin/idea.sh > /dev/null 2>&1 &"
alias discord="wmctrl -x -a discord || /opt/discord/Discord > /dev/null 2>&1 &"