From 3052b7dad468c44f475d12aca074638b6e829cfd Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Tue, 11 Apr 2023 10:27:01 +0200 Subject: [PATCH] Updates --- README.md | 5 ++++- dunst/dunstrc | 10 +++++----- scripts/launchvm.sh | 5 ++++- scripts/scrot.sh | 13 +++++++++---- scripts/updatewal.sh | 5 +++-- scripts/wallpaper.sh | 12 ++++++++++++ 6 files changed, 37 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 23ed980..3003a21 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,13 @@ Prompt: starship Bar: polybar Icons: Font Awesome Menus: Rofi -Colorscheme: pywal +Colorscheme: pywal (dynamic) Browser: brave Filemanager: ranger, Thunar Screenshots: scrot +Cursor: Bibata Modern Classic +Icons: Tela Circle Orange Dark +Theme: Adapta-Nokto Virtual Machine: qemu (Windows 11 with looking glass and xrdp) Please also see the script folder how I setup my system. diff --git a/dunst/dunstrc b/dunst/dunstrc index 899c261..fba9015 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -73,7 +73,7 @@ # The transparency of the window. Range: [0; 100]. # This option will only work if a compositing window manager is # present (e.g. xcompmgr, compiz, etc.). (X11 only) - transparency = 50 + transparency = 30 # Draw a line of "separator_height" pixel height between two # notifications. @@ -127,7 +127,7 @@ # The spacing between lines. If the height is smaller than the # font height, it will get raised to the font height. - line_height = 0 + line_height = 3 # Possible values are: # full: Allow a small subset of html markup in notifications: @@ -315,14 +315,14 @@ # Otherwise the "#" and following would be interpreted as a comment. background = "#000000" foreground = "#888888" - timeout = 10 + timeout = 6 # Icon for notifications with low urgency, uncomment to enable #default_icon = /path/to/icon [urgency_normal] background = "#000000" foreground = "#ffffff" - timeout = 10 + timeout = 6 # Icon for notifications with normal urgency, uncomment to enable #default_icon = /path/to/icon @@ -330,7 +330,7 @@ background = "#900000" foreground = "#ffffff" frame_color = "#ffffff" - timeout = 10 + timeout = 6 # Icon for notifications with critical urgency, uncomment to enable #default_icon = /path/to/icon diff --git a/scripts/launchvm.sh b/scripts/launchvm.sh index 2d9c6f3..78a1468 100755 --- a/scripts/launchvm.sh +++ b/scripts/launchvm.sh @@ -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 diff --git a/scripts/scrot.sh b/scripts/scrot.sh index bc19477..2588bf7 100755 --- a/scripts/scrot.sh +++ b/scripts/scrot.sh @@ -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 diff --git a/scripts/updatewal.sh b/scripts/updatewal.sh index c4c4f86..11dec5c 100755 --- a/scripts/updatewal.sh +++ b/scripts/updatewal.sh @@ -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." + diff --git a/scripts/wallpaper.sh b/scripts/wallpaper.sh index 8efb4a0..188ae32 100755 --- a/scripts/wallpaper.sh +++ b/scripts/wallpaper.sh @@ -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