summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-05-17 11:40:22 +0000
committerShubham Saini <shubham6405@gmail.com>2020-05-17 11:40:22 +0000
commit5bc01819f4c9b453e5b66994217aa61260a49201 (patch)
tree6fa764cb136fbdc1e91e39b4e60ca1920b9f498d /bin
parentbbd8414377daeaedce3715517a130f4d1f0e9893 (diff)
changes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/.local/bin/screenshot4
-rwxr-xr-xbin/.local/bin/shut4
-rwxr-xr-xbin/.local/bin/statusbar8
3 files changed, 8 insertions, 8 deletions
diff --git a/bin/.local/bin/screenshot b/bin/.local/bin/screenshot
index 107faf7..100bbe2 100755
--- a/bin/.local/bin/screenshot
+++ b/bin/.local/bin/screenshot
@@ -1,10 +1,10 @@
1#!/bin/bash 1#!/bin/bash
2screenshot() { 2screenshot() {
3 case $1 in 3 case $1 in
4 full) 4 f*)
5 scrot -m 5 scrot -m
6 ;; 6 ;;
7 window) 7 w*)
8 sleep 1 8 sleep 1
9 scrot -s 9 scrot -s
10 ;; 10 ;;
diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut
index 801d5bf..76a7bd0 100755
--- a/bin/.local/bin/shut
+++ b/bin/.local/bin/shut
@@ -3,8 +3,8 @@
3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10") 3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10")
4 4
5case $RET in 5case $RET in
6 shutdown) sudo poweroff ;; 6 shutdown) doas poweroff ;;
7 reboot) sudo reboot ;; 7 reboot) doas reboot ;;
8 sleep) xset s activate & sudo zzz ;; 8 sleep) xset s activate & sudo zzz ;;
9 lock) xset s activate ;; 9 lock) xset s activate ;;
10 *) ;; 10 *) ;;
diff --git a/bin/.local/bin/statusbar b/bin/.local/bin/statusbar
index 433b4d5..00b5d2b 100755
--- a/bin/.local/bin/statusbar
+++ b/bin/.local/bin/statusbar
@@ -5,22 +5,22 @@ BB='\033[00m'
5 5
6vol(){ 6vol(){
7 vol=$(pulsemixer --get-volume | awk '{print $1}') 7 vol=$(pulsemixer --get-volume | awk '{print $1}')
8 echo -e "+@fg=1;vol+@fg=0; $vol% " 8 echo -e "vol $vol% "
9} 9}
10 10
11bat() { 11bat() {
12 power=$(cat /sys/class/power_supply/BAT0/capacity) 12 power=$(cat /sys/class/power_supply/BAT0/capacity)
13 echo -e "+@fg=1;bat+@fg=0; $power% " 13 echo -e "bat $power% "
14} 14}
15 15
16dte() { 16dte() {
17 dte=$(date +"%A, %B %d") 17 dte=$(date +"%A, %B %d")
18 echo -e "+@fg=1;date+@fg=0; $dte " 18 echo -e "date $dte "
19} 19}
20 20
21tie() { 21tie() {
22 tme=$(date +"%I:%M %p") 22 tme=$(date +"%I:%M %p")
23 echo -e "+@fg=1;time+@fg=0; $tme " 23 echo -e "time $tme "
24} 24}
25 25
26while :; do 26while :; do