pull rc.lua from tablet

This commit is contained in:
Izaya 2022-08-27 14:07:49 +10:00
parent 060ca4995f
commit a42fef4b10
2 changed files with 505 additions and 0 deletions

View File

@ -0,0 +1,325 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
width="512"
height="512"
viewBox="0 0 128 128"
id="svg4081">
<defs
id="defs4083">
<linearGradient
x1="0.85715157"
y1="5.7142859"
x2="0.85715157"
y2="44.858185"
id="linearGradient3132"
xlink:href="#linearGradient3851"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.6410256,0,0,2.6410256,109.652,-63.02564)" />
<linearGradient
id="linearGradient3851">
<stop
id="stop3853"
style="stop-color:#000000;stop-opacity:0.43200001"
offset="0" />
<stop
id="stop3855"
style="stop-color:#000000;stop-opacity:0.627451"
offset="1" />
</linearGradient>
<linearGradient
x1="64.230865"
y1="-28.825758"
x2="64.230865"
y2="34.457344"
id="linearGradient4125"
xlink:href="#linearGradient4113"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,-1,-5.6302223e-7,6.031954)" />
<linearGradient
id="linearGradient4113">
<stop
id="stop4115"
style="stop-color:#000000;stop-opacity:1"
offset="0" />
<stop
id="stop4117"
style="stop-color:#000000;stop-opacity:0"
offset="1" />
</linearGradient>
<linearGradient
x1="64.230865"
y1="-28.825758"
x2="64.230865"
y2="34.457344"
id="linearGradient4119"
xlink:href="#linearGradient4113"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(0.00442744,0.015966)" />
<linearGradient
x1="19.927404"
y1="44.949184"
x2="19.927404"
y2="4.9969058"
id="linearGradient3141-7"
xlink:href="#linearGradient3707-319-631-407-324-616-4"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.625,0,0,2.625,1.2115735,-62.169156)" />
<linearGradient
id="linearGradient3707-319-631-407-324-616-4">
<stop
id="stop3246-6"
style="stop-color:#505050;stop-opacity:1"
offset="0" />
<stop
id="stop3248-7"
style="stop-color:#8e8e8e;stop-opacity:1"
offset="1" />
</linearGradient>
<linearGradient
x1="23.99999"
y1="4.999989"
x2="23.99999"
y2="43"
id="linearGradient3128-361"
xlink:href="#linearGradient3924-776"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.7297298,0,0,2.7297298,-1.513512,-62.513486)" />
<linearGradient
id="linearGradient3924-776">
<stop
id="stop3124"
style="stop-color:#ffffff;stop-opacity:1"
offset="0" />
<stop
id="stop3126"
style="stop-color:#ffffff;stop-opacity:0.23529412"
offset="0.06316455" />
<stop
id="stop3128"
style="stop-color:#ffffff;stop-opacity:0.15686275"
offset="0.95056331" />
<stop
id="stop3130"
style="stop-color:#ffffff;stop-opacity:0.39215687"
offset="1" />
</linearGradient>
<radialGradient
cx="7.4956832"
cy="8.4497671"
r="19.99999"
fx="7.4956832"
fy="8.4497671"
id="radialGradient3171-717"
xlink:href="#linearGradient2867-449-88-871-390-598-476-591-434-148-57-177-80"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(5.0812921e-8,6.1121285,-6.4659031,-1.1260873e-7,118.63568,-92.29102)" />
<linearGradient
id="linearGradient2867-449-88-871-390-598-476-591-434-148-57-177-80">
<stop
id="stop3108"
style="stop-color:#c7c7c7;stop-opacity:1"
offset="0" />
<stop
id="stop3110"
style="stop-color:#a6a6a6;stop-opacity:1"
offset="0.26238" />
<stop
id="stop3112"
style="stop-color:#7b7b7b;stop-opacity:1"
offset="0.704952" />
<stop
id="stop3114"
style="stop-color:#595959;stop-opacity:1"
offset="1" />
</linearGradient>
<radialGradient
cx="4.9929786"
cy="43.5"
r="2.5"
fx="4.9929786"
fy="43.5"
id="radialGradient2455-1"
xlink:href="#linearGradient3688-166-749-5"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.003784,0,0,1.4,27.98813,-17.4)" />
<linearGradient
id="linearGradient3688-166-749-5">
<stop
id="stop2883-0"
style="stop-color:#181818;stop-opacity:1"
offset="0" />
<stop
id="stop2885-5"
style="stop-color:#181818;stop-opacity:0"
offset="1" />
</linearGradient>
<radialGradient
cx="4.9929786"
cy="43.5"
r="2.5"
fx="4.9929786"
fy="43.5"
id="radialGradient2457-5"
xlink:href="#linearGradient3688-464-309-8"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.003784,0,0,1.4,-20.01187,-104.4)" />
<linearGradient
id="linearGradient3688-464-309-8">
<stop
id="stop2889-9"
style="stop-color:#181818;stop-opacity:1"
offset="0" />
<stop
id="stop2891-4"
style="stop-color:#181818;stop-opacity:0"
offset="1" />
</linearGradient>
<linearGradient
x1="25.058096"
y1="47.027729"
x2="25.058096"
y2="39.999443"
id="linearGradient2459-7"
xlink:href="#linearGradient3702-501-757-0"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient3702-501-757-0">
<stop
id="stop2895-0"
style="stop-color:#181818;stop-opacity:0"
offset="0" />
<stop
id="stop2897-2"
style="stop-color:#181818;stop-opacity:1"
offset="0.5" />
<stop
id="stop2899-6"
style="stop-color:#181818;stop-opacity:0"
offset="1" />
</linearGradient>
<linearGradient
id="linearGradient3811">
<stop
id="stop3813"
style="stop-color:#000000;stop-opacity:1"
offset="0" />
<stop
id="stop3815"
style="stop-color:#000000;stop-opacity:0"
offset="1" />
</linearGradient>
<radialGradient
cx="-4.0287771"
cy="93.467628"
r="35.338131"
fx="-4.0287771"
fy="93.467628"
id="radialGradient4079"
xlink:href="#linearGradient3811"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.43648207,0,52.670685)" />
</defs>
<metadata
id="metadata4086">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(0,64)"
id="layer1">
<path
d="m 31.309354,93.467628 a 35.338131,15.42446 0 1 1 -70.676262,0 35.338131,15.42446 0 1 1 70.676262,0 z"
transform="matrix(1.5563924,0,0,0.38899254,70.270358,17.64179)"
id="path3041"
style="opacity:0.2;color:#000000;fill:url(#radialGradient4079);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<g
transform="matrix(2.6999989,0,0,0.55555607,-0.80000186,30.888882)"
id="g2036"
style="display:inline">
<g
transform="matrix(1.052632,0,0,1.285713,-1.263158,-13.42854)"
id="g3712"
style="opacity:0.4">
<rect
width="5"
height="7"
x="38"
y="40"
id="rect2801"
style="fill:url(#radialGradient2455-1);fill-opacity:1;stroke:none" />
<rect
width="5"
height="7"
x="-10"
y="-47"
transform="scale(-1,-1)"
id="rect3696"
style="fill:url(#radialGradient2457-5);fill-opacity:1;stroke:none" />
<rect
width="28"
height="7.0000005"
x="10"
y="40"
id="rect3700"
style="fill:url(#linearGradient2459-7);fill-opacity:1;stroke:none" />
</g>
</g>
<rect
width="102"
height="102"
rx="5.5"
ry="5.5"
x="13"
y="-48"
id="rect5505-21"
style="color:#000000;fill:url(#radialGradient3171-717);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<rect
width="101"
height="101"
rx="5"
ry="5"
x="13.5"
y="-47.5"
id="rect6741-7"
style="opacity:0.5;fill:none;stroke:url(#linearGradient3128-361);stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
<path
d="m 60.000002,-27.999989 c -0.554,0 -1,0.446 -1,1 l 0,7.53125 c -2.917284,0.61801 -5.610077,1.770601 -8.03125,3.34375 l -5.34375,-5.34375 c -0.195869,-0.195869 -0.463131,-0.28125 -0.71875,-0.28125 -0.255619,0 -0.522881,0.08538 -0.71875,0.28125 l -5.65625,5.65625 c -0.391737,0.391737 -0.391739,1.045762 0,1.4375 l 5.34375,5.343751 c -1.573149,2.421173 -2.72574,5.113966 -3.34375,8.03125 l -7.53125,0 c -0.554,0 -1,0.446 -1,1 l 0,8 c 0,0.554 0.446,1 1,1 l 7.53125,0 c 0.61801,2.917283 1.770601,5.610076 3.34375,8.031249 l -5.34375,5.34375 c -0.391737,0.391737 -0.391739,1.04576 0,1.4375 l 5.65625,5.65625 c 0.391737,0.391737 1.045761,0.391736 1.4375,0 l 5.34375,-5.34375 c 2.421173,1.573149 5.113966,2.72574 8.03125,3.34375 l 0,7.53125 c 0,0.554 0.446,1 1,1 l 8,0 c 0.554,0 1,-0.446 1,-1 l 0,-7.53125 c 2.917284,-0.61801 5.610077,-1.770601 8.03125,-3.34375 l 5.34375,5.34375 c 0.391737,0.391737 1.04576,0.391736 1.4375,0 l 5.65625,-5.65625 c 0.391737,-0.391737 0.391736,-1.045765 0,-1.4375 l -5.34375,-5.34375 c 1.573149,-2.421173 2.72574,-5.113966 3.34375,-8.031249 l 7.53125,0 c 0.554,0 1,-0.446 1,-1 l 0,-8 c 0,-0.554 -0.446,-1 -1,-1 l -7.53125,0 c -0.61801,-2.917284 -1.770601,-5.610077 -3.34375,-8.03125 l 5.34375,-5.343751 c 0.391737,-0.391737 0.391735,-1.045762 0,-1.4375 l -5.65625,-5.65625 c -0.391737,-0.391737 -1.045765,-0.391738 -1.4375,0 l -5.34375,5.34375 c -2.421173,-1.573149 -5.113966,-2.72574 -8.03125,-3.34375 l 0,-7.53125 c 0,-0.554 -0.446,-1 -1,-1 l -8,0 z m 4,21.000001 c 6.072,0 11,4.928 11,11 0,6.072 -4.928,10.999999 -11,10.999999 -6.072,0 -11,-4.927999 -11,-10.999999 0,-6.072 4.928,-11 11,-11 z"
id="path2502"
style="opacity:0.3;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.70000005;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<path
d="m 60.000002,-28.999989 c -0.554,0 -1,0.446 -1,1 l 0,7.53125 c -2.917284,0.61801 -5.610077,1.770601 -8.03125,3.34375 l -5.34375,-5.34375 c -0.195869,-0.195869 -0.463131,-0.28125 -0.71875,-0.28125 -0.255619,0 -0.522881,0.08538 -0.71875,0.28125 l -5.65625,5.65625 c -0.391737,0.391737 -0.391739,1.045762 0,1.4375 l 5.34375,5.34375 c -1.573149,2.421174 -2.72574,5.113967 -3.34375,8.031251 l -7.53125,0 c -0.554,0 -1,0.446 -1,1 l 0,8 c 0,0.554 0.446,1 1,1 l 7.53125,0 c 0.61801,2.917283 1.770601,5.610076 3.34375,8.031249 l -5.34375,5.34375 c -0.391737,0.391737 -0.391739,1.04576 0,1.4375 l 5.65625,5.65625 c 0.391737,0.391737 1.045761,0.391736 1.4375,0 l 5.34375,-5.34375 c 2.421173,1.573149 5.113966,2.72574 8.03125,3.34375 l 0,7.53125 c 0,0.554 0.446,1 1,1 l 8,0 c 0.554,0 1,-0.446 1,-1 l 0,-7.53125 c 2.917284,-0.61801 5.610077,-1.770601 8.03125,-3.34375 l 5.34375,5.34375 c 0.391737,0.391737 1.04576,0.391736 1.4375,0 l 5.65625,-5.65625 c 0.391737,-0.391737 0.391736,-1.045765 0,-1.4375 l -5.34375,-5.34375 c 1.573149,-2.421173 2.72574,-5.113966 3.34375,-8.031249 l 7.53125,0 c 0.554,0 1,-0.446 1,-1 l 0,-8 c 0,-0.554 -0.446,-1 -1,-1 l -7.53125,0 c -0.61801,-2.917284 -1.770601,-5.610077 -3.34375,-8.031251 l 5.34375,-5.34375 c 0.391737,-0.391737 0.391735,-1.045762 0,-1.4375 l -5.65625,-5.65625 c -0.391737,-0.391737 -1.045765,-0.391738 -1.4375,0 l -5.34375,5.34375 c -2.421173,-1.573149 -5.113966,-2.72574 -8.03125,-3.34375 l 0,-7.53125 c 0,-0.554 -0.446,-1 -1,-1 l -8,0 z m 4,21.000001 c 6.072,0 11,4.928 11,11 0,6.072 -4.928,10.999999 -11,10.999999 -6.072,0 -11,-4.927999 -11,-10.999999 0,-6.072 4.928,-11 11,-11 z"
id="rect2484"
style="color:#000000;fill:url(#linearGradient3141-7);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.70000005;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<path
d="m 60.004428,-28.296534 c -0.67793,0.806584 -0.14094,2.289468 -0.3125,3.371798 -0.0897,1.61171 0.17194,3.294613 -0.1158,4.867286 -1.80939,0.957711 -4.14855,1.062037 -5.94315,2.231518 -1.0656,0.144568 -2.05742,1.955076 -3.1598,1.216898 -1.87056,-1.78828 -3.60797,-3.773234 -5.5625,-5.4375 -2.05874,1.768369 -3.90024,3.857601 -5.875,5.75 0.10261,1.053427 1.51843,1.714583 2.16325,2.60075 1.08047,1.210011 2.46752,2.218408 3.37436,3.543981 -0.6089,1.943968 -2.18196,3.653378 -2.63864,5.731866 -0.66849,0.858105 -0.0795,2.875736 -1.39897,3.123403 -2.5794,0.05886 -5.203843,-0.117947 -7.754987,0.08876 -0.206156,2.707499 -0.0303,5.488009 -0.08876,8.223736 0.806584,0.677935 2.289468,0.140943 3.371797,0.3125 1.61171,0.08975 3.29461,-0.171944 4.86729,0.115803 0.95771,1.80939 1.06203,4.148544 2.23152,5.943144 0.14456,1.065602 1.95507,2.057423 1.21689,3.159803 -1.78505,1.871074 -3.77766,3.604917 -5.43187,5.562499 1.75831,2.061794 3.85521,3.899728 5.74437,5.875001 1.05343,-0.102606 1.71459,-1.518435 2.60075,-2.16325 1.21001,-1.080466 2.21841,-2.467521 3.54398,-3.374358 1.94397,0.608901 3.65338,2.181954 5.73187,2.638639 0.8581,0.668492 2.87574,0.07951 3.1234,1.398969 0.0589,2.5794 -0.11794,5.203843 0.0888,7.754987 2.7075,0.206156 5.48801,0.0303 8.22374,0.08876 0.67793,-0.806584 0.14094,-2.289468 0.3125,-3.371798 0.0898,-1.61171 -0.17194,-3.294613 0.1158,-4.867286 1.80939,-0.957711 4.14855,-1.062037 5.94315,-2.231518 1.0656,-0.144568 2.05742,-1.955076 3.1598,-1.216898 1.87107,1.78505 3.60492,3.777665 5.5625,5.431869 2.06179,-1.758302 3.89973,-3.855202 5.875,-5.744369 -0.10261,-1.05343 -1.51844,-1.714583 -2.16325,-2.60075 -1.08047,-1.210011 -2.46752,-2.218408 -3.37436,-3.543981 0.6089,-1.943968 2.18196,-3.653378 2.63864,-5.731866 0.66849,-0.858105 0.0795,-2.875736 1.39897,-3.123403 2.5794,-0.05886 5.20384,0.117947 7.75499,-0.08876 0.20615,-2.707496 0.0303,-5.488006 0.0888,-8.223733 -0.80659,-0.677935 -2.28947,-0.140943 -3.3718,-0.3125 -1.61171,-0.08975 -3.29461,0.171944 -4.86729,-0.115803 -0.95771,-1.80939 -1.06203,-4.148544 -2.23152,-5.943144 -0.14456,-1.065601 -1.95507,-2.057423 -1.21689,-3.159803 1.78505,-1.871074 3.77767,-3.604915 5.43187,-5.562499 -1.7583,-2.061795 -3.8552,-3.899727 -5.74437,-5.875001 -1.05343,0.102609 -1.71458,1.518435 -2.60075,2.16325 -1.21001,1.080466 -2.21841,2.467521 -3.54398,3.374358 -1.94397,-0.608901 -3.65338,-2.181954 -5.73187,-2.638639 -0.8581,-0.668492 -2.87573,-0.07951 -3.1234,-1.398969 -0.0589,-2.5794 0.11795,-5.203843 -0.0888,-7.754987 -2.69978,-0.206063 -5.49531,-0.03035 -8.22374,-0.08876 z"
id="path4123"
style="opacity:0.1;fill:none;stroke:url(#linearGradient4119);stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<path
d="M 64,14.719454 C 70.90718,14.939715 76.822128,8.048783 75.552696,1.253392 74.727538,-5.370638 67.498552,-10.147689 61.081031,-8.287237 54.578165,-6.804703 50.541724,0.847955 53.02234,7.048204 54.62178,11.56752 59.199227,14.786665 64,14.719454 z"
id="path4110"
style="opacity:0.1;fill:none;stroke:url(#linearGradient4125);stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<rect
width="103"
height="103"
rx="6"
ry="6"
x="12.5"
y="-48.5"
id="rect5505-21-6"
style="color:#000000;fill:none;stroke:url(#linearGradient3132);stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 16 KiB

180
rc.lua Normal file
View File

@ -0,0 +1,180 @@
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
local beautiful = require("beautiful")
local wibox = require("wibox")
local naughty = require("naughty")
local vkbd = require("vkbd")
vkbd.spacing = 1
local switcherpopup = require("awesome-switcherpopup")
local powermenu = require("awesome-powermenu")
local launcherpopup = require("awesome-launcherpopup")
local longpress = require("awesome-longpress")
local navbar = require("awesome-navbar")
if not beautiful.init(string.format("%s/.config/awesome-mobile/theme.lua",os.getenv("HOME"))) then
beautiful.init(gears.filesystem.get_configuration_dir().."/theme.lua")
end
vkbd.init("ansi")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({
preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_errors
})
end
-- Handle runtime errors after startup
do
local in_error = false
awesome.connect_signal("debug::error", function(err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true
naughty.notify({
preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = tostring(err)
})
in_error = false
end)
end
-- }}}
--- Naughty Configuration
naughty.config.defaults.position = "top_middle"
for _, lvl in ipairs {"low", "normal", "critical"} do
naughty.config.presets[lvl].width = 700
end
modkey = "Control"
terminal = "kgx"
launcher = "xfce4-appfinder"
-- {{{ 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
awful.screen.connect_for_each_screen(function(s)
awful.tag({"1"}, s, layouts[1])
end)
local function nextTagName(s)
return tostring(#s.tags+1)
end
-- }}}
-- {{{ Widgets and etc
-- Power menu for
powermenuPopup = powermenu.new()
awful.screen.connect_for_each_screen(function(s)
s.navbar = navbar.new(s)
gears.wallpaper.maximized("/home/izaya/Pictures/Wallpapers/Phone/86892073_p7.png",s,false)
end)
-- }}}
-- {{{ Key bindings
globalkeys = gears.table.join(awful.key({modkey, "Control", "Shift"}, "r",
awesome.restart, {
description = "restart awesome",
group = "awesome"
}))
local function global_key(mods, key, cb, opt_desc, opt_group)
local opt_data = {}
if opt_desc then opt_data.description = opt_desc end
if opt_group then opt_data.group = opt_group end
globalkeys = gears.table.join(globalkeys, awful.key(mods, key, cb, opt_data))
end
local function client_key(mods, key, cb, opt_desc, opt_group)
local opt_data = {}
if opt_desc then opt_data.description = opt_desc end
if opt_group then opt_data.group = opt_group end
clientkeys = gears.table.join(clientkeys, awful.key(mods, key, cb, opt_data))
end
global_key({modkey}, "Return", function() awful.spawn(terminal) end, "open a terminal", "launcher")
global_key({modkey}, "p", function() powermenuPopup:toggle() end, "show power menu", "launcher")
global_key({}, "XF86PowerOff", function() powermenuPopup:toggle() end, "show power menu", "launcher")
global_key({modkey}, "Space", function() awful.spawn(launcher) end, "Show launcher", "launcher")
client_key({modkey,"Alt"},"c",function(c) c:kill() end, "close application","client")
root.keys(globalkeys)
-- }}}
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
{
rule = {},
properties = {
keys = clientkeys,
border_width = 0,
focus = awful.client.focus.filter,
raise = true,
placement = awful.placement.no_overlap + awful.placement.no_offscreen
}
}
}
-- }}}
-- {{{ 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
if not next(c.icon_sizes) then
c.icon = gears.surface(gears.filesystem.get_configuration_dir().."/application-x-executable.svg")._native
end
end)
-- }}}
client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", {raise = false})
end)
awful.spawn("gnome-calls -d")
awful.spawn("chatty -D")
awful.spawn("nm-applet")
awful.spawn("xfce4-power-manager")