Compare commits
No commits in common. "7ab4d72769b4149aa8e6fd9908e6d17a84054d22" and "f35db645a2cc9113fcd26cb97a51233e23cbfa60" have entirely different histories.
7ab4d72769
...
f35db645a2
10
brightness
10
brightness
|
@ -1,10 +0,0 @@
|
||||||
#!/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"
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
current=$(setxkbmap -print | grep symbols)
|
|
||||||
current=${current#*\+}
|
|
||||||
current=${current%\+*}
|
|
||||||
|
|
||||||
new=$( [[ $current == "us" ]] && echo "cz" || echo "us" )
|
|
||||||
|
|
||||||
setxkbmap $new
|
|
||||||
echo "$current -> $new"
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
[[ "$(systemctl is-active bluetooth)" == 'active' ]] && $(systemctl stop bluetooth || :) || systemctl restart bluetooth
|
|
Loading…
Reference in New Issue