Compare commits

...

2 Commits

Author SHA1 Message Date
Kolan Sh f128bf543f Dialog borders. 2021-05-14 19:15:24 +03:00
Kolan Sh 402b4c4000 Optional nVidia Power Management tricks. 2021-05-14 19:15:05 +03:00
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,8 @@
os.execute ("setxkbmap -layout 'us,ru'")
os.execute ("setxkbmap -option 'grp:shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp'")
os.execute ("xrandr --setprovideroutputsource modesetting NVIDIA-0 && xrandr --auto")
--os.execute ("/usr/bin/nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1")
--os.execute ("nvidia-smi -pm ENABLED")
--os.execute (os.getenv("HOME").."/.config/awesome/set_wall.sh "..os.getenv("HOME").."/.config/awesome/wallpaper.slink &")
os.execute ("pgrep xscreensaver || xscreensaver -no-splash &")
os.execute ("pgrep mail_loop.sh || "..os.getenv("HOME").."/.config/awesome/mail_loop.sh &")

10
rc.lua
View File

@ -736,9 +736,13 @@ awful.rules.rules = {
}
}, properties = { floating = true }},
-- Add titlebars to normal clients and dialogs
{ rule_any = {type = { "normal", "dialog" }
}, properties = { titlebars_enabled = false }
-- Default 'Normal' clients properties
{ rule_any = {type = { "normal" }
}, properties = { titlebars_enabled = false; border_width = 0; floating = false; }
},
-- Default 'Dialog' clients properties
{ rule_any = {type = { "dialog" }
}, properties = { titlebars_enabled = true; border_width = 2; }
},
-- { rule = { class = "URxvt" },