mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
commit
efd9459ab3
@ -182,7 +182,7 @@ local function set_wallpaper(s)
|
||||
|
||||
-- wallpaper only in PC
|
||||
if s.geometry.width > 320 then
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
gears.wallpaper.centered(wallpaper, s, 1)
|
||||
end
|
||||
|
||||
end
|
||||
@ -219,14 +219,12 @@ end
|
||||
|
||||
|
||||
|
||||
-- screen.connect_signal("property::geometry", set_wallpaper)
|
||||
|
||||
|
||||
screen.connect_signal("property::geometry", set_wallpaper)
|
||||
|
||||
|
||||
awful.screen.connect_for_each_screen(function(s)
|
||||
-- Wallpaper
|
||||
|
||||
set_wallpaper(s)
|
||||
-- Each screen has its own tag table.
|
||||
awful.tag({ "GameShell" }, s, awful.layout.layouts[1])
|
||||
|
||||
@ -311,6 +309,8 @@ awful.rules.rules = {
|
||||
buttons = clientbuttons,
|
||||
screen = awful.screen.preferred,
|
||||
placement = awful.placement.no_overlap+awful.placement.no_offscreen
|
||||
--placement = awful.placement.no_overlap+awful.placement.centered+awful.placement.no_offscreen
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
@ -334,10 +334,7 @@ awful.rules.rules = {
|
||||
"pinentry",
|
||||
"veromix",
|
||||
"xtightvncviewer",
|
||||
"xclock",
|
||||
"run.py",
|
||||
"gsnotify",
|
||||
"gsnotify-arm"
|
||||
"xclock"
|
||||
},
|
||||
|
||||
name = {
|
||||
@ -350,17 +347,12 @@ awful.rules.rules = {
|
||||
}, properties = { ontop=false,floating = true,titlebars_enabled=false }},
|
||||
|
||||
|
||||
{ rule_any = {class = {"run.py","gsnotify","gsnotify-arm" }},
|
||||
-- properties = { placement = awful.placement.centered,border_width=0 }
|
||||
properties = { border_width=0 }
|
||||
|
||||
},
|
||||
-- Set Firefox to always map on the tag named "2" on screen 1.
|
||||
-- { rule = { class = "Firefox" },
|
||||
-- properties = { screen = 1, tag = "2" } },
|
||||
}
|
||||
-- }}}
|
||||
|
||||
|
||||
local gs_class = {"run.py","gsnotify","gsnotify-arm","retroarch"}
|
||||
|
||||
-- {{{ Signals
|
||||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c)
|
||||
@ -388,7 +380,29 @@ client.connect_signal("manage", function (c)
|
||||
c.type = "notification"
|
||||
c.floating = true
|
||||
c:raise()
|
||||
-- awful.titlebar.hide(c)
|
||||
end
|
||||
|
||||
for s in capi.screen do
|
||||
if s.geometry.width > 320 then
|
||||
for _,v in pairs(gs_class) do
|
||||
if c.class:lower() == v then
|
||||
awful.titlebar.hide(c)
|
||||
if v ~= "gsnotify-arm" then
|
||||
awful.placement.centered(c)
|
||||
end
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
-- centered bg with offset of tasklist_bar's height
|
||||
-- c.y= c.y + s.mywibox.height
|
||||
|
||||
else
|
||||
-- hide all titlebars in GS
|
||||
awful.titlebar.hide(c)
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
@ -77,7 +77,7 @@ theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/def
|
||||
theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png"
|
||||
theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png"
|
||||
|
||||
theme.wallpaper = "/usr/share/awesome/themes/default/background.png"
|
||||
theme.wallpaper = "~/launcher/sys.py/gameshell/wallpaper/loading.png"
|
||||
|
||||
-- You can use your own layout icons like this:
|
||||
theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user