fzdwx

fzdwx

Hello , https://github.com/fzdwx

Linuxでのアプリケーションランチャー:Rofi

今日、Linux のアプリケーションランチャー rofi を見つけました。これを使用すると、ウィンドウの切り替えやプログラムの起動が高速化されます。
私はそれをwmctrlと組み合わせて使用しています。

私の使用方法:

1.Archlinux のインストール

yay -S rofi

2. カスタムショートカットキーの追加、ホットキーはalt+spacerofi -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 &"
読み込み中...
文章は、創作者によって署名され、ブロックチェーンに安全に保存されています。