web-dev-qa-db-ja.com

タイルWMのフルスクリーンウィンドウ上のフローティングパネル

GNU/Linuxを使用してキオスクを作成したい。 GUI1つのアプリケーションを全画面表示する必要があります。

ratpoisonが私のニーズに合っていることがわかりました。しかし、ユーザーがキーボードレイアウトを表示および変更したり、パネルにデジタル時計を表示したりできるようにもしたいと思います。この情報を表示するために、1280の水平ピクセルすべてが必要なわけではないことは明らかです。私のフルスクリーンアプリケーションにはメインメニューがあり、右側の空のスペースを使用してパネルにオーバーレイすると便利です。

enter image description here

tint2configのこれらの行でそれを達成しました。

panel_position = top right horizontal
panel_size = 150 24

strut_policy = none
panel_layer = top

「通常の」WM(kwinなど)ではうまく機能しますが、タイルWMでは同じ結果を得ることができません(「通常の」WMよりも単純なタイルWMを強化する方が簡単だと思います)。すでにratpoisonawesomei3を試しました。

どうすれば目標を達成できますか? WMやパネルを簡単に別のものに変更できます。

2
rominf

私は解決策を見つけました。簡単なawesome configを作成しました(ありがとう、Tom Regner [ https://askubuntu.com/a/193141/211231] )。透明なパネルの背景を取得するためにxcompmgrをインストールし、最後に構成を取得します。

〜/ .config/awesome/rc.lua:

require("awful")
require("awful.layout")
require("awful.util")
require("awful.tag")
require("screen")
require("freedesktop.utils")
require("freedesktop.desktop")

layouts = {
    awful.layout.suit.max.fullscreen
}

tags = {
     names = {"kwrite" },
     layout = {layouts[1]}
}
for s = 1, screen.count() do
   tags[s] = awful.tag(tags.names, s, tags.layout)
end

awful.util.spawn_with_Shell("xcompmgr &")
awful.util.spawn_with_Shell("qxkb &")  
awful.util.spawn("tint2")
awful.util.spawn("kwrite")

〜/ .config/tint2/tint2rc:

 # Background definitions
 # ID 1
 background_color = #000000 0

 # Panel
 panel_monitor = all
 panel_position = top right horizontal
 panel_size = 150 24
 panel_layer = top
 panel_background_id = 1

 # System Tray
 systray_padding = 0 0 0
 systray_sort = ascending
 systray_background_id = 1
 systray_icon_size = 0
 systray_icon_asb = 100 0 0

 # Clock
 time1_format = %H:%M, %d.%m.%y
 time1_font = Sans 12
 clock_font_color = #000000 100
1
rominf