minor improvements
[distro-setup] / brc
diff --git a/brc b/brc
index 8c662c7a22a62130f51863c8e67f650c17b68242..c243706a73660932f6994e4e84214cdf5c7d282f 100644 (file)
--- a/brc
+++ b/brc
@@ -167,6 +167,7 @@ C_DEFAULT_DIR=/a
 # https://superuser.com/questions/366930/how-do-i-get-the-git-pager-to-clean-up-screen-output-after-exit
 # and reading the man
 export LESS=RXi
+export SYSTEMD_LESS=$LESS
 
 # * include files
 for _x in /a/bin/distro-functions/src/* /a/bin/!(githtml)/*-function?(s); do
@@ -340,6 +341,7 @@ b() {
 }
 
 bbk() {
+  c /
   # run latest
   install-my-scripts
   btrbk-run "$@"
@@ -1085,6 +1087,8 @@ ipdrop() {
   s iptables -A INPUT -s $1 -j DROP
 }
 
+jr() { journalctl "$@"; }
+
 net-dev-info() {
   e "lspci -nnk|gr -iA2 net"
   lspci -nnk|gr -iA2 net
@@ -1484,7 +1488,7 @@ scssl() {
 }
 
 ser() {
-  local s; [[ $EUID != 0 ]] && s=sudo
+  local s; [[ $EUID != 0 ]] && s=s
   if type -p systemctl &>/dev/null; then
     $s systemctl $1 $2
   else
@@ -2175,12 +2179,14 @@ reset-xscreensaver() {
   # xscreensaver-command -demo
   # then finding the corresponding option in .xscreensaver
   # spash, i happened to notice in .xscreensaver
+  #
+  # dpmsOff, monitor doesnt come back on using old free software supported nvidia card
   cat > /home/iank/.xscreensaver <<'EOF'
 mode:          blank
 dpmsEnabled:   True
 dpmsStandby:   0:02:00
-dpmsSuspend:   0:02:00
-dpmsOff:       0:03:00
+dpmsSuspend:   0:03:00
+dpmsOff:       0:00:00
 timeout:       0:02:00
 lock:           True
 lockTimeout:   0:03:00