From c0b575447382bc680f0c0a73a0154f64d36126d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Tue, 8 Oct 2019 22:18:25 -0300 Subject: [PATCH] Remove old scripts. --- script/.local/bin/i3_apps | 13 ----------- script/.local/bin/i3_init | 4 ---- script/.local/bin/kde-i3.sh | 2 -- script/.local/bin/launch_browsers | 5 ----- script/.local/bin/login_wallpaper | 5 ----- script/.local/bin/tmuxi3 | 4 ---- script/.local/bin/weather_background | 33 ---------------------------- 7 files changed, 66 deletions(-) delete mode 100755 script/.local/bin/i3_apps delete mode 100755 script/.local/bin/i3_init delete mode 100644 script/.local/bin/kde-i3.sh delete mode 100755 script/.local/bin/launch_browsers delete mode 100755 script/.local/bin/login_wallpaper delete mode 100755 script/.local/bin/tmuxi3 delete mode 100755 script/.local/bin/weather_background diff --git a/script/.local/bin/i3_apps b/script/.local/bin/i3_apps deleted file mode 100755 index 58a1fe9..0000000 --- a/script/.local/bin/i3_apps +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# layouts -i3-msg "workspace 2; append_layout ~/.config/i3/tmux.json" -i3-msg "workspace 1; append_layout ~/.config/i3/editor.json" - -# editor workspace -i3-msg "exec --no-startup-id emacs --name editor" -i3-msg "exec --no-startup-id alacritty -t editortop" -i3-msg "exec --no-startup-id alacritty -t editorbot" - -# tmux workspace -i3-msg "exec --no-startup-id alacritty -t tmux -e tmuxi3" diff --git a/script/.local/bin/i3_init b/script/.local/bin/i3_init deleted file mode 100755 index c53d96f..0000000 --- a/script/.local/bin/i3_init +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -~/.fehbg -beepoff diff --git a/script/.local/bin/kde-i3.sh b/script/.local/bin/kde-i3.sh deleted file mode 100644 index b70880c..0000000 --- a/script/.local/bin/kde-i3.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -export KDEWM=/usr/bin/i3 diff --git a/script/.local/bin/launch_browsers b/script/.local/bin/launch_browsers deleted file mode 100755 index 09380c8..0000000 --- a/script/.local/bin/launch_browsers +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -i3-msg "append_layout ~/.config/i3/browser.json" -i3-msg "exec --no-startup-id qutebrowser" -i3-msg "exec --no-startup-id kioclient5 exec .local/share/applications/firefox.desktop" diff --git a/script/.local/bin/login_wallpaper b/script/.local/bin/login_wallpaper deleted file mode 100755 index d06d8e5..0000000 --- a/script/.local/bin/login_wallpaper +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -sudo mv /usr/share/sddm/themes/breath/components/artwork/background.png /usr/share/sddm/themes/breath/components/artwork/background.png.back - -sudo convert /home/ericonr/Pictures/Wallpaper/wallpaper_login.* /usr/share/sddm/themes/breath/components/artwork/background.png \ No newline at end of file diff --git a/script/.local/bin/tmuxi3 b/script/.local/bin/tmuxi3 deleted file mode 100755 index c594d86..0000000 --- a/script/.local/bin/tmuxi3 +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -sleep 5 -tmux diff --git a/script/.local/bin/weather_background b/script/.local/bin/weather_background deleted file mode 100755 index 56f905e..0000000 --- a/script/.local/bin/weather_background +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -# based on: https://bbs.archlinux.org/viewtopic.php?id=215899 -# and: https://git.reviewboard.kde.org/r/125648/ -# and: https://github.com/chubin/wttr.in - -WALLPATH=/home/ericonr/Pictures/Wallpaper - -# download png -curl wttr.in/Campinas_tqp0.png --output $WALLPATH/weather.png --silent -convert $WALLPATH/weather.png -resize 130% $WALLPATH/weather.png -echo DOWNLOADED - -# create the background image -convert $WALLPATH/wallpaper_default.jpg $WALLPATH/weather.png -geometry '+50+50' -composite $WALLPATH/wallpaper_weather.jpg - -# run script that changes the wallpaper - convoluted mess -qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript \ - 'var allDesktops = desktops(); - print (allDesktops); - - wallpath = "file:///home/ericonr/Pictures/Wallpaper/"; - - // allDesktops.lentgh not used, changing only the main background - - for (i=0; i < 1; i++) { - d = allDesktops[i]; - d.wallpaperPlugin = "org.kde.image"; - d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General"); - d.writeConfig("Image", wallpath + "wallpaper_default.jpg") - d.writeConfig("Image", wallpath + "wallpaper_weather.jpg") - }' -echo CHANGED_BACKGROUND