Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from samueldr-wip/feature/better-demo
Make the demo more useful on a touch device
- Loading branch information
Showing
10 changed files
with
1,065 additions
and
17 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
-- | ||
-- Minimal "one window at a time" configuration. | ||
-- | ||
-- There are no features. No keyboard control. | ||
-- | ||
|
||
local awful = require("awful") | ||
awful.rules = require("awful.rules") | ||
require("awful.autofocus") | ||
|
||
-- {{{ Layout | ||
|
||
-- Table of layouts to cover with awful.layout.inc, order matters. | ||
local layouts = { | ||
-- awful.layout.suit.tile, | ||
-- awful.layout.suit.tile.left, | ||
-- awful.layout.suit.tile.bottom, | ||
-- awful.layout.suit.tile.top, | ||
-- awful.layout.suit.fair, | ||
-- awful.layout.suit.fair.horizontal, | ||
-- awful.layout.suit.spiral, | ||
-- awful.layout.suit.spiral.dwindle, | ||
awful.layout.suit.max, | ||
-- awful.layout.suit.max.fullscreen, | ||
-- awful.layout.suit.magnifier, | ||
-- awful.layout.suit.floating, | ||
} | ||
|
||
-- }}} | ||
|
||
-- {{{ Tags | ||
local tags = {} | ||
awful.screen.connect_for_each_screen(function(s) | ||
tags[s] = awful.tag({"1"}, s, layouts[1]) | ||
end) | ||
-- }}} | ||
|
||
-- {{{ Wibox | ||
local mywibox = {} | ||
awful.screen.connect_for_each_screen(function(s) | ||
-- Hmmm, this is weird, but I *have* to add a wibar. | ||
-- Otherwise awesome will not resize windows when onboard resizes... | ||
-- Weird, eh? | ||
mywibox[s] = awful.wibar({ position = "top", screen = s, visible = false }) | ||
end) | ||
-- }}} | ||
|
||
-- {{{ Rules | ||
awful.rules.rules = { | ||
-- All clients will match this rule. | ||
{ rule = { }, | ||
properties = { | ||
border_width = 0, | ||
focus = awful.client.focus.filter, | ||
raise = true, | ||
placement = awful.placement.no_overlap+awful.placement.no_offscreen, | ||
} | ||
}, | ||
|
||
-- XFCE notification | ||
-- Otherwise all notifications will interrupt input with a HW (bluetooth) keyboard | ||
{ rule = { instance = "xfce4-notifyd", class = "Xfce4-notifyd" }, | ||
properties = { | ||
border_width = 0, | ||
sticky = true, | ||
focusable = false, | ||
nofocus = true, | ||
ontop = true; | ||
} | ||
}, | ||
|
||
-- Onboard on-screen keyboard | ||
{ rule = { instance = "onboard", class = "Onboard" }, | ||
properties = { | ||
border_width = 0, | ||
sticky = true, | ||
focusable = false, | ||
nofocus = true, | ||
ontop = true; | ||
} | ||
}, | ||
|
||
-- Xfce desktop | ||
-- Allows its use in all tags. | ||
{ rule = { instance = "xfdesktop", class = "Xfdesktop" }, | ||
properties = { | ||
border_width = 0, | ||
sticky = true, | ||
focusable = false, | ||
nofocus = true, | ||
} | ||
}, | ||
|
||
} | ||
-- }}} | ||
|
||
-- {{{ Signals | ||
|
||
-- Signal function to execute when a new client appears. | ||
client.connect_signal("manage", function (c, startup) | ||
if not startup then | ||
-- Set the windows at the slave, | ||
-- i.e. put it at the end of others instead of setting it master. | ||
-- awful.client.setslave(c) | ||
|
||
-- Put windows in a smart way, only if they does not set an initial position. | ||
if not c.size_hints.user_position and not c.size_hints.program_position then | ||
awful.placement.no_overlap(c) | ||
awful.placement.no_offscreen(c) | ||
end | ||
end | ||
end) | ||
|
||
-- }}} |
32 changes: 32 additions & 0 deletions
32
examples/demo/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<channel name="xfce4-desktop" version="1.0"> | ||
<property name="backdrop" type="empty"> | ||
<property name="screen0" type="empty"> | ||
<property name="monitor0" type="empty"> | ||
<property name="workspace0" type="empty"> | ||
<property name="color-style" type="int" value="0"/> | ||
<property name="image-style" type="int" value="5"/> | ||
<property name="last-image" type="string" value="@wallpaper@"/> | ||
</property> | ||
</property> | ||
</property> | ||
</property> | ||
<property name="desktop-menu" type="empty"> | ||
<property name="show" type="bool" value="false"/> | ||
</property> | ||
<property name="windowlist-menu" type="empty"> | ||
<property name="show" type="bool" value="false"/> | ||
</property> | ||
<property name="desktop-icons" type="empty"> | ||
<property name="file-icons" type="empty"> | ||
<property name="show-filesystem" type="bool" value="false"/> | ||
<property name="show-removable" type="bool" value="false"/> | ||
</property> | ||
<property name="single-click" type="bool" value="true"/> | ||
<property name="show-tooltips" type="bool" value="false"/> | ||
<property name="use-custom-font-size" type="bool" value="true"/> | ||
<property name="font-size" type="double" value="10.000000"/> | ||
<property name="icon-size" type="uint" value="96"/> | ||
</property> | ||
</channel> |
Oops, something went wrong.