diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-05-17 11:40:22 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-05-17 11:40:22 +0000 |
commit | 5bc01819f4c9b453e5b66994217aa61260a49201 (patch) | |
tree | 6fa764cb136fbdc1e91e39b4e60ca1920b9f498d /bin | |
parent | bbd8414377daeaedce3715517a130f4d1f0e9893 (diff) |
changes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/.local/bin/screenshot | 4 | ||||
-rwxr-xr-x | bin/.local/bin/shut | 4 | ||||
-rwxr-xr-x | bin/.local/bin/statusbar | 8 |
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 |
2 | screenshot() { | 2 | screenshot() { |
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 @@ | |||
3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10") | 3 | RET=$(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 | ||
5 | case $RET in | 5 | case $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 | ||
6 | vol(){ | 6 | vol(){ |
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 | ||
11 | bat() { | 11 | bat() { |
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 | ||
16 | dte() { | 16 | dte() { |
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 | ||
21 | tie() { | 21 | tie() { |
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 | ||
26 | while :; do | 26 | while :; do |