Compare commits
3 Commits
f35db645a2
...
7ab4d72769
Author | SHA1 | Date |
---|---|---|
|
7ab4d72769 | |
|
d2d606417f | |
|
57c459f5ec |
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
input=$1
|
||||
input=${input%\%}
|
||||
re_num='^100$|(^[0-9]{1,2}$)' #100 nebo [0-9] jednou az dvakrat
|
||||
[[ $input =~ $re_num ]] && val=$(($input*240)) || echo "NavN"
|
||||
|
||||
su -c "sudo brightnessctl s $val" bash >/dev/null
|
||||
|
||||
#echo "brightness set to $val"
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
current=$(setxkbmap -print | grep symbols)
|
||||
current=${current#*\+}
|
||||
current=${current%\+*}
|
||||
|
||||
new=$( [[ $current == "us" ]] && echo "cz" || echo "us" )
|
||||
|
||||
setxkbmap $new
|
||||
echo "$current -> $new"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
[[ "$(systemctl is-active bluetooth)" == 'active' ]] && $(systemctl stop bluetooth || :) || systemctl restart bluetooth
|
Loading…
Reference in New Issue