This commit is contained in:
Stephan Raabe
2023-04-11 10:27:01 +02:00
parent 6fe65fe53f
commit 3052b7dad4
6 changed files with 37 additions and 13 deletions
+4 -1
View File
@@ -37,12 +37,15 @@ tmp=$(virsh --connect qemu:///system list | grep " win11 " | awk '{ print $3}')
if ([ "x$tmp" == "x" ] || [ "x$tmp" != "xrunning" ])
then
virsh --connect qemu:///system start win11
notify-send "Virtual Machine started" "Domain win11"
echo "Waiting 25 sec for Windows 11 startup..."
countdown "00:00:25"
else
notify-send "Virtual Machine already running" "Domain win11"
fi
echo "Starting xfreerdp now..."
xfreerdp -grab-keyboard /t:"Windows 11" /v:192.168.122.42 /size:100% /d: /p:sancho /dynamic-resolution /gfx-h264:avc444 +gfx-progressive &
xfreerdp -grab-keyboard /t:"Windows 11" /v:192.168.122.42 /size:100% /u:raabe /d: /dynamic-resolution /gfx-h264:avc444 +gfx-progressive &
sleep 10
exit
+9 -4
View File
@@ -22,10 +22,15 @@ choice=$(echo -e "$options" | rofi -i -dmenu -lines 4 -width 30 -p "Take Screens
case $choice in
$option1)
scrot $DIR$NAME -d 3 -e 'xclip -selection clipboard -t image/png -i $f' -c -z -u;;
scrot $DIR$NAME -d 3 -e 'xclip -selection clipboard -t image/png -i $f' -c -z -u
notify-send "Screenshot created" "Mode: Selected window"
;;
$option2)
scrot $DIR$NAME -s -e 'xclip -selection clipboard -t image/png -i $f';;
scrot $DIR$NAME -s -e 'xclip -selection clipboard -t image/png -i $f'
notify-send "Screenshot created" "Mode: Selected area"
;;
$option3)
scrot $DIR$NAME -d 3 -e 'xclip -selection clipboard -t image/png -i $f';;
scrot $DIR$NAME -d 3 -e 'xclip -selection clipboard -t image/png -i $f'
notify-send "Screenshot created" "Mode: Fullscreen"
;;
esac
+3 -2
View File
@@ -23,9 +23,10 @@ qtile cmd-obj -o cmd -f reload_config
# Get new theme
source "$HOME/.cache/wal/colors.sh"
newwall=$(echo $wallpaper | sed 's|/home/raabe/wallpaper/||g')
newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
# Send notification
notify-send "Theme updated" "with image $newwall"
notify-send "Theme and Wallpaper updated" "With image $newwall"
echo "Done."
+12
View File
@@ -13,6 +13,8 @@
selected=$(ls -1 ~/wallpaper | grep "jpg" | rofi -dmenu -p "Select the wallpaper")
if [ "$selected" ]; then
echo "Changing theme..."
# Update wallpaper with pywal
wal -q -i ~/wallpaper/$selected
@@ -21,4 +23,14 @@ if [ "$selected" ]; then
# Reload qtile to color bar
qtile cmd-obj -o cmd -f reload_config
# Get new theme
source "$HOME/.cache/wal/colors.sh"
newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
# Send notification
notify-send "Theme and Wallpaper updated" "With image $newwall"
echo "Done."
fi