-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
366ceed
commit 1e5296b
Showing
44 changed files
with
368 additions
and
1,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
|
||
# Check if an argument is provided | ||
if [ $# -ne 1 ]; then | ||
echo "Usage: $0 <light|dark>" | ||
exit 1 | ||
fi | ||
|
||
# Get the argument | ||
theme=$1 | ||
|
||
# Check if the argument is "light" or "dark" and perform actions accordingly | ||
if [ "$theme" = "light" ]; then | ||
echo "Setting light theme..." | ||
|
||
# gtk | ||
gsettings set org.gnome.desktop.interface color-scheme 'default' | ||
gsettings set org.gnome.desktop.interface icon-theme 'ePapirus' | ||
|
||
gnome-extensions enable [email protected] | ||
|
||
# qt | ||
cp "$HOME/.config/qt5ct/light.conf" "$HOME/.config/qt5ct/qt5ct.conf" | ||
|
||
# terminal | ||
alacritty-conf -c atom_one_light | ||
|
||
# wallpaper using variety | ||
variety --set-option icon Dark --set-option lightness_mode 1 | ||
variety --next | ||
|
||
elif [ "$theme" = "dark" ]; then | ||
echo "Setting dark theme..." | ||
|
||
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' | ||
gsettings set org.gnome.desktop.interface icon-theme 'ePapirus-Dark' | ||
|
||
gnome-extensions disable [email protected] | ||
|
||
# qt | ||
cp "$HOME/.config/qt5ct/dark.conf" "$HOME/.config/qt5ct/qt5ct.conf" | ||
|
||
# terminal | ||
alacritty-conf -c alacritty_0_12 | ||
|
||
# wallpaper using variety | ||
variety --set-option icon Light --set-option lightness_mode 0 | ||
variety --next | ||
|
||
else | ||
echo "Invalid argument. Usage: $0 <light|dark>" | ||
exit 1 | ||
fi | ||
|
||
echo "Theme customization complete." | ||
|
||
# Help | ||
# | ||
# changing theme in gnome | ||
# gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3-dark' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
setxkbmap -option "caps:swapescape" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
select_bg="#928374" | ||
select_fg="#1d2021" | ||
nselect_bg="#1d2021" | ||
nselect_fg="#ebdbb2" | ||
font="IosevkaTerm Nerd Font" | ||
font_size="17" | ||
x="960" | ||
y="540" | ||
DMENU="dmenu -i -l 20 -nb \"$nselect_bg\" -nf \"$nselect_fg\" -sb \"$select_bg\" -sf \"$select_fg\" -fn \"$font-$font_size\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
#!/bin/bash | ||
[ -f "$HOME/.dmenurc" ] && . $HOME/.dmenurc || DMENU='dmenu -i' | ||
|
||
CONFIG="$HOME/Scripts/dmenu/config" | ||
[ -f "$CONFIG" ] && . $CONFIG || DMENU='dmenu -i' | ||
|
||
DMTERM="alacritty -e" | ||
declare -a options=("Search manpages" "Random manpage") | ||
choice=$(printf '%s\n' "${options[@]}" | eval "$DMENU -p 'Manpages:'") | ||
case "$choice" in | ||
'Search manpages') | ||
man -k . | awk '{$3="-"; print $0}' | | ||
eval "$DMENU -p 'Search for:'" | | ||
awk '{print $2, $1}' | tr -d '()' | xargs $DMTERM man | ||
;; | ||
man -k . | awk '{$3="-"; print $0}' | | ||
eval "$DMENU -p 'Search for:'" | | ||
awk '{print $2, $1}' | tr -d '()' | xargs $DMTERM man | ||
;; | ||
'Random manpage') | ||
man -k . | awk '{print $1}' | shuf -n 1 | | ||
eval "$DMENU -p 'Random manpage:'" | xargs $DMTERM man | ||
;; | ||
man -k . | awk '{print $1}' | shuf -n 1 | | ||
eval "$DMENU -p 'Random manpage:'" | xargs $DMTERM man | ||
;; | ||
*) | ||
exit 1 | ||
;; | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
[ -f "$HOME/.dmenurc" ] && . $HOME/.dmenurc || DMENU='dmenu -i' | ||
|
||
CONFIG="$HOME/Scripts/dmenu/config" | ||
[ -f "$CONFIG" ] && . $CONFIG || DMENU='dmenu -i' | ||
|
||
BOOK_DIR="/media/totoro/Data/eBooks/" | ||
if [ ! -d $BOOK_DIR ]; then | ||
echo "Drive not mounted. / Folder dosen't exists" | eval "$DMENU -p 'ERROR :-('" | ||
echo "Drive not mounted. / Folder dosen't exists" | eval "$DMENU -p 'ERROR :-('" | ||
else | ||
var1=$(find $BOOK_DIR -type f -name "*.pdf" | sed "s+$BOOK_DIR++" | eval "$DMENU -p ''") | ||
[ -n "$var1" ] && zathura "$BOOK_DIR/$var1" # open book | ||
var1=$(find $BOOK_DIR -type f -name "*.pdf" | sed "s+$BOOK_DIR++" | eval "$DMENU -p ''") | ||
[ -n "$var1" ] && zathura "$BOOK_DIR/$var1" # open book | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
#!/bin/bash | ||
[ -f "$HOME/.dmenurc" ] && . $HOME/.dmenurc || DMENU='dmenu -i' | ||
|
||
CONFIG="$HOME/Scripts/dmenu/config" | ||
[ -f "$CONFIG" ] && . $CONFIG || DMENU='dmenu -i' | ||
|
||
selected="$(ps --user "$(id -u)" -F | | ||
eval "$DMENU -p 'Search for process to kill:'" | | ||
awk '{print $2" "$11}')" | ||
eval "$DMENU -p 'Search for process to kill:'" | | ||
awk '{print $2" "$11}')" | ||
if [[ -n $selected ]]; then | ||
answer="$(echo -e "No\nYes" | dmenu -i -p "Kill $selected?")" | ||
if [[ $answer == "Yes" ]]; then | ||
selpid="$(awk '{print $1}' <<<$selected)" | ||
kill -9 "$selpid" | ||
echo "Process $selected has been killed." && exit 1 | ||
fi | ||
if [[ $answer == "No" ]]; then | ||
echo "Program terminated." && exit 1 | ||
fi | ||
answer="$(echo -e "No\nYes" | dmenu -i -p "Kill $selected?")" | ||
if [[ $answer == "Yes" ]]; then | ||
selpid="$(awk '{print $1}' <<<$selected)" | ||
kill -9 "$selpid" | ||
echo "Process $selected has been killed." && exit 1 | ||
fi | ||
if [[ $answer == "No" ]]; then | ||
echo "Program terminated." && exit 1 | ||
fi | ||
fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
#!/bin/bash | ||
[ -f "$HOME/.dmenurc" ] && . $HOME/.dmenurc || DMENU='dmenu -i' | ||
SONG_DIR="/media/totoro/Data/Music/SoundTracks/" | ||
|
||
CONFIG="$HOME/Scripts/dmenu/config" | ||
[ -f "$CONFIG" ] && . $CONFIG || DMENU='dmenu -i' | ||
|
||
SONG_DIR="$HOME/Data/Music/" | ||
if [ ! -d $SONG_DIR ]; then | ||
echo "Drive not mounted. / Folder dosen't exists" | eval "$DMENU -p 'ERROR :-('" | ||
exit 1 | ||
echo "Drive not mounted. / Folder dosen't exists" | eval "$DMENU -p 'ERROR :-('" | ||
exit 1 | ||
fi | ||
|
||
if [ $# -ne 0 ]; then | ||
var1=$(find $SONG_DIR -type f -name "*" | shuf | sed "s+$SONG_DIR++" | head -1) | ||
var1=$(find $SONG_DIR -type f -name "*" | shuf | sed "s+$SONG_DIR++" | head -1) | ||
else | ||
random_song=$(find $SONG_DIR -type f -name "*" | shuf | sed "s+$SONG_DIR++" | head -1) | ||
var1=$(find $SONG_DIR -type f -name "*") | ||
var1=$(echo -e "$random_song\n$var1" | sed "s+$SONG_DIR++" | eval "$DMENU -p ' '") | ||
random_song=$(find $SONG_DIR -type f -name "*" | shuf | sed "s+$SONG_DIR++" | head -1) | ||
var1=$(find $SONG_DIR -type f -name "*") | ||
var1=$(echo -e "$random_song\n$var1" | sed "s+$SONG_DIR++" | eval "$DMENU -p ' '") | ||
fi | ||
[ -n "$var1" ] && audacious "$SONG_DIR/$var1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
[ -f "$HOME/.dmenurc" ] && . $HOME/.dmenurc || DMENU='dmenu -i' | ||
|
||
CONFIG="$HOME/Scripts/dmenu/config" | ||
[ -f "$CONFIG" ] && . $CONFIG || DMENU='dmenu -i' | ||
|
||
RECENT_DIR="$HOME/.local/share/RecentDocuments" | ||
if [ ! -d $RECENT_DIR ]; then | ||
echo "Drive not mounted. / Folder dosen't exists" | eval "$DMENU -p 'ERROR :-('" | ||
echo "Drive not mounted. / Folder dosen't exists" | eval "$DMENU -p 'ERROR :-('" | ||
else | ||
var1=$(ls -1 $RECENT_DIR | eval "$DMENU -p ' '") | ||
[ -n "$var1" ] && kioclient5 exec "$RECENT_DIR/$var1" # open book | ||
var1=$(ls -1 $RECENT_DIR | eval "$DMENU -p ' '") | ||
[ -n "$var1" ] && kioclient5 exec "$RECENT_DIR/$var1" # open book | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
dunstctl set-paused false | ||
|
||
sleep 1 | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Set the paused status of dunst | ||
dunstctl set-paused true |
Oops, something went wrong.