modif bat widget move redshift to xinitrc

This commit is contained in:
vincent 2018-11-14 20:59:07 +01:00
parent dbd00f469b
commit 0b501c73f1
3 changed files with 6 additions and 5 deletions

View File

@ -9,5 +9,4 @@ function run {
run /usr/lib/polkit-kde-authentication-agent-1 run /usr/lib/polkit-kde-authentication-agent-1
run ~/script/autoxrandr run ~/script/autoxrandr
run redshift
run setxkbmap -layout "fr,us" run setxkbmap -layout "fr,us"

View File

@ -226,8 +226,8 @@ local bat = lain.widget.bat({
settings = function() settings = function()
local perc = bat_now.perc ~= "N/A" and bat_now.perc .. "%" or bat_now.perc local perc = bat_now.perc ~= "N/A" and bat_now.perc .. "%" or bat_now.perc
if bat_now.ac_status == 1 then if bat_now.status then
perc = perc .. " plug" perc = perc .. " " .. bat_now.status
end end
widget:set_markup(markup.fontfg(beautiful.font, beautiful.fg_normal, perc .. " ")) widget:set_markup(markup.fontfg(beautiful.font, beautiful.fg_normal, perc .. " "))
@ -307,7 +307,8 @@ awful.screen.connect_for_each_screen(function(s)
nil -- Middle widget nil -- Middle widget
,{ -- Right widgets ,{ -- Right widgets
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
--myredshift_stack, myredshift_stack,
spr_right,
netdownicon, netdownicon,
netdowninfo, netdowninfo,
netupicon, netupicon,

View File

@ -18,7 +18,8 @@ compton -b &
#config pad #config pad
xinput set-prop 13 289 1 & xinput set-prop 13 289 1 &
xinput set-prop 13 297 1 & xinput set-prop 13 297 1 &
# exec dbus-launch i3 redshift &
# exec dbus-launch i3
case $1 in case $1 in
i3 ) exec dbus-launch i3;; i3 ) exec dbus-launch i3;;
* ) exec $1;; * ) exec $1;;