dwm config

This commit is contained in:
Frank Villaro-Dixon 2014-06-09 23:13:34 +02:00
parent df7e4de196
commit cb81af8b42
2 changed files with 12 additions and 12 deletions

View file

@ -1,19 +1,19 @@
#!/bin/bash
BEFORE=`xbacklight`
xbacklight -set 0 -time 0 -steps 1
sleep 0.1
xbacklight -set $BEFORE -time 0 -steps 1
#BEFORE=`xbacklight`
#xbacklight -set 0 -time 0 -steps 1
#sleep 0.1
#xbacklight -set $BEFORE -time 0 -steps 1
exit
#exit
LIGHT=/sys/class/leds/tpacpi\:\:thinklight/brightness
STATE=`cat $LIGHT`
INVERSE=`echo 255-$STATE | bc -l`
echo $INVERSE > $LIGHT
echo $INVERSE | sudo tee $LIGHT
sleep .1
echo $STATE > $LIGHT
echo $STATE | sudo tee $LIGHT
sleep .1
echo $INVERSE > $LIGHT
echo $INVERSE | sudo tee $LIGHT
sleep .1
echo $STATE > $LIGHT
echo $STATE | sudo tee $LIGHT

View file

@ -30,7 +30,7 @@ static const char *tags[] = {
*/
static const char *tags[] = {
"1:FF", "2", "3:CONS", "4:CONS", "5:CONS", "6:IDE", "7", "8", "9",
"q", "w", "e", "r:RSS", "t:MAIL", "z:IM", };
"q", "w", "e", "r:RSS", "m:MAIL", "z:IM", };
static const char *urgent_cmd = "/home/frank/Programmation/dotfiles/Utils/urgent.sh";
@ -110,13 +110,13 @@ static Key keys[] = {
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} }, /* ratio droite/gauche */
{ MODKEY, XK_t, setmfact, {.f = +0.05} }, /* idem */
{ MODKEY, XK_m, setmfact, {.f = +0.05} }, /* idem */
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
// { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
// { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_s, setlayout, {.v = &layouts[3]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },