[rc] add PowerTOP systemd service
[~bandali/configs] / rc.org
diff --git a/rc.org b/rc.org
index de3ef32..c3692f7 100644 (file)
--- a/rc.org
+++ b/rc.org
@@ -2685,6 +2685,23 @@ polybar main &
 echo "Bars launched..."
 #+end_src
 
+** PowerTOP
+:PROPERTIES:
+:header-args+: :tangle "/sudo::/etc/systemd/system/powertop.service"
+:END:
+
+#+begin_src conf
+[Unit]
+Description=Powertop tunings
+
+[Service]
+ExecStart=/usr/bin/powertop --auto-tune
+RemainAfterExit=true
+
+[Install]
+WantedBy=multi-user.target
+#+end_src
+
 ** ranger
 
 *** rc.conf
@@ -3508,6 +3525,8 @@ contrary, it's automatically sourced by LightDM, my display manager of
 choice.
 
 #+begin_src sh
+xset -b  # disable bell
+
 # setxkbmap -option compose:ralt
 
 setxkbmap -option ctrl:nocaps          # turn capslock into control
@@ -3537,7 +3556,7 @@ then
     bspwm &
 elif [ $(hostname) = "enigma" ]
 then
-    emacs &
+    emacs -ib 0 &
 fi
 #+end_src
 
@@ -4170,7 +4189,7 @@ exact brightness value.
 
 #+begin_src bash
 cur=$(light -G)
-val=$(rofi -dmenu -mesg "light    $cur" -p "light -S " -l 0 -width 8)
+val=$(rofi -dmenu -mesg "light    $cur" -p "light -S " -l 0 -width 12)
 light -S $val
 #+end_src