
i3を試してみてください。私はキーボードから手を離さずにコンピュータを制御するのが大好きですが、i3はサウンドや明るさ制御などの基本機能をネイティブにサポートしていません。マルチモニターなどを使いたいときにも問題があるようです(モニターについてはよくわかりません。サウンドコントロールの問題を解決する方法を探している間に投稿を見つけましたが、しばしば鉢植えに鉢植えを見せなければなりません。ノートパソコンが必要なので必要です。 )
明るさを変えるためにスクリプトを放棄することはプライドには良いと思いますが、それが合理的であるか生産的であるとは思わないでしょう。私は宿題をするのではなく、このようなことをして多くの時間を無駄にし、博士学位の取得に失敗するところだった。
デフォルトでは、タイリングウィンドウマネージャはありますか?それとも、この基本的なタスクを処理できるi3または他のタイリングマネージャ用のパッケージはありますか?
答え1
これ基本的なあなたが探しているもの基本的なDEにはあるがWMには当てはまらないので、このすべてを望むなら箱の外その後、DEに固執します。
つまり、目的のコマンドをスクロールして目的のキーにバインドできます。私は現在約2週間i3を使用しており、明るさに関する特定の問題に対処する必要があります。解決策はウェブで検索することです。ここ。
だから.config
キーをスクリプトにバインドします...
# backlight control
bindsym XF86MonBrightnessUp exec sh ~/.config/i3/backlight.sh -inc 20
bindsym XF86MonBrightnessDown exec sh ~/.config/i3/backlight.sh -dec 20
スクリプトは重い作業を行います。
#!/bin/bash
set -e
file="/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness"
current=$(cat "$file")
new="$current"
if [ "$1" = "-inc" ]
then
new=$(( current + $2 ))
fi
if [ "$1" = "-dec" ]
then
new=$(( current - $2 ))
fi
echo "$new" | tee "$file"
Webの検索、修正、スクリプトの作成に30分もかかりませんでした。
colemakに切り替えた後、生産性が回復するのに時間がかかりましたが…一時的に痛みを伴う措置でしたが、結果としてはそれほど価値がありました(特に他の人がタイピングを試みることを見ていること)。
答え2
私はi3をKDE Plasma、xfce、lxdeと連携させる方法を見つけました。
私の場合、KDEの設定はバグが少なく、カチオンキー(ボリュームと明るさの調整)が正しく機能する唯一の設定でした。
KDEの場合:このリンクにガイドがあります。https://userbase.kde.org/Tutorials/Using_Other_Window_Managers_with_Plasma
ここに別のものがあります:https://medium.com/@vishnu_mad/using-i3-window-manager-with-kde-plasma-c2ac70594d8
個人的には、私は2番目のリンクの方法を使用し、最初のリンクで使用したコマンドのいくつかをi3設定ファイルに追加しました。
最後に、設定ファイルに以下を追加しました。
#____ Plasma Integration BEGIN _____
#Try to kill the wallpaper set by Plasma (it takes up the entire workspace
#and hides everythiing)
exec --no-startup-id wmctrl -c Plasma
for_window [title="Desktop — Plasma"] kill; floating enable; border none
#Avoid tiling popups, dropdown windows from plasma
for_window [class="plasmashell"] floating enable
for_window [class="Plasma"] floating enable
for_window [class="krunner"] floating enable
for_window [class="Kmix"] floating enable
#for_window [class="Klipper"] floating enable
#for_window [class="Plasmoidviewer"] floating enable
#____ Window Rules ____
#____ Avoid tiling for non-Plasma stuff ____
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_role="About"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
#____ lol idk what programs this thig take care of ____
for_window [class="plasmashell"] floating enable;
for_window [class="Plasma"] floating enable; border none
for_window [title="plasma-desktop"] floating enable; border none
for_window [title="win7"] floating enable; border none
for_window [class="krunner"] floating enable; border none
for_window [class="Kmix"] floating enable; border none
for_window [class="Klipper"] floating enable; border none
for_window [class="Plasmoidviewer"] floating enable; border none
for_window [class="(?i)*nextcloud*"] floating disable
for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 700px, move down 450px
no_focus [class="plasmashell" window_type="notification"]
#____ Plasma Integration END _____
xfceとi3を組み合わせる方法を示すこの記事を見つけました。
http://feeblenend.blogspot.com/2015/11/pretty-i3-with-xfce.html
ところで、私の場合はxfceでも明るさキーが動作しませんねㅎㅎ
また、KDEのメインウィンドウマネージャを「類似」タイリングウィンドウマネージャに変換する方法を示すこのビデオを見つけました。
https://www.youtube.com/watch?v=n4pppzPxD3Q
また、ラインをinに置き換えてwindow_manager=openbox-lxde
i3とLXDEを組み合わせることができることもわかりました。 inでもラインを削除する必要がありますが、明るさとサウンドコントロールにも同じ問題があります。window_manager=openbox-lxde
~/.config/lxsession/LXDE/desktop.conf
@pcmanfm --desktop --profile LXDE
~/.config/lxsession/LXDE/autostart