Skip to content

Commit ba69421

Browse files
Update global themes
1 parent 15559a4 commit ba69421

File tree

7 files changed

+91
-28
lines changed

7 files changed

+91
-28
lines changed

‎docs/configuration/walker.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ yay -S elephant
1313
yay -S elephant-desktopapplications
1414
yay -S elephant-files
1515
yay -S elephant-menus
16+
yay -S elephant-clipboard
1617
```
1718

1819
```bash
@@ -50,6 +51,10 @@ sudo make install
5051
cd ~/Downloads/elephant/internal/providers/files
5152
sudo make install
5253

54+
# Provider clipboard
55+
cd ~/Downloads/elephant/internal/providers/clipboard
56+
sudo make install
57+
5358
```
5459
## Activate Walker
5560

‎dotfiles/.config/ml4w/scripts/cliphist.sh‎

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,18 @@
1111
# Load Launcher
1212
# -----------------------------------------------------
1313
launcher=$(cat $HOME/.config/ml4w/settings/launcher)
14-
15-
case $1 in
16-
d)
17-
if [ "$launcher" == "walker" ]; then
18-
cliphist list | $HOME/.config/walker/launch.sh -d -N -H -p "Search" | cliphist delete
19-
else
14+
if [ "$launcher" == "walker" ]; then
15+
$HOME/.config/walker/launch.sh -m clipboard -N -H
16+
else
17+
case $1 in
18+
d)
2019
cliphist list | rofi -dmenu -replace -config ~/.config/rofi/config-cliphist.rasi | cliphist delete
21-
fi
2220
;;
23-
24-
w)
25-
if [ "$launcher" == "walker" ]; then
26-
if [ $(echo -e "Clear\nCancel" | $HOME/.config/walker/launch.sh -d -n -N -H --maxheight 100) == "Clear" ]; then
27-
cliphist wipe
28-
fi
29-
else
30-
if [ $(echo -e "Clear\nCancel" | rofi -dmenu -config ~/.config/rofi/config-short.rasi) == "Clear" ]; then
31-
cliphist wipe
32-
fi
33-
fi
21+
w)
22+
cliphist wipe
3423
;;
35-
36-
*)
37-
if [ "$launcher" == "walker" ]; then
38-
cliphist list | $HOME/.config/walker/launch.sh -d -N -H -p "Search" | cliphist decode | wl-copy
39-
else
24+
*)
4025
cliphist list | rofi -dmenu -replace -config ~/.config/rofi/config-cliphist.rasi | cliphist decode | wl-copy
41-
fi
4226
;;
43-
esac
27+
esac
28+
fi
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
# ML4W Theme Glass
3+
4+
# Set waybar
5+
echo "/ml4w-glass;/ml4w-glass/default" > $HOME/.config/ml4w/settings/waybar-theme.sh
6+
$HOME/.config/waybar/launch.sh &
7+
8+
# Set nwg-dock-hyprland
9+
echo "glass" > $HOME/.config/ml4w/settings/dock-theme
10+
$HOME/.config/nwg-dock-hyprland/launch.sh &
11+
12+
# Set swaync
13+
echo '@import "themes/glass/style.css";' > $HOME/.config/swaync/style.css
14+
swaync-client -rs
15+
16+
# Set wlogout
17+
echo '@import "themes/glass/style.css";' > $HOME/.config/wlogout/style.css
18+
19+
# Set launcher
20+
echo 'walker' > $HOME/.config/ml4w/settings/launcher
21+
22+
# Set walker theme
23+
echo 'glass' > $HOME/.config/ml4w/settings/walker-theme
24+
25+
# Set Window Border
26+
echo 'source = ~/.config/hypr/conf/windows/glass.conf' > $HOME/.config/hypr/conf/window.conf
27+
28+
# Set rofi
29+
echo '* { border-width: 1px; }' > $HOME/.config/ml4w/settings/rofi-border.rasi
30+
31+
echo ":: Theme set to Glass"

‎dotfiles/.config/ml4w/themes/glass/theme.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ echo '@import "themes/glass/style.css";' > $HOME/.config/wlogout/style.css
1919
# Set launcher
2020
echo 'rofi' > $HOME/.config/ml4w/settings/launcher
2121

22+
# Set walker theme
23+
echo 'glass' > $HOME/.config/ml4w/settings/walker-theme
24+
2225
# Set Window Border
2326
echo 'source = ~/.config/hypr/conf/windows/glass.conf' > $HOME/.config/hypr/conf/window.conf
2427

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
# ML4W Theme Modern
3+
4+
# Set waybar
5+
echo "/ml4w-modern;/ml4w-modern/default" > $HOME/.config/ml4w/settings/waybar-theme.sh
6+
$HOME/.config/waybar/launch.sh &
7+
8+
# Set nwg-dock-hyprland
9+
echo "modern" > $HOME/.config/ml4w/settings/dock-theme
10+
$HOME/.config/nwg-dock-hyprland/launch.sh &
11+
12+
# Set swaync
13+
echo '@import "themes/modern/style.css";' > $HOME/.config/swaync/style.css
14+
swaync-client -rs
15+
16+
# Set wlogout
17+
echo '@import "themes/modern/style.css";' > $HOME/.config/wlogout/style.css
18+
19+
# Set launcher
20+
echo 'walker' > $HOME/.config/ml4w/settings/launcher
21+
22+
# Set walker theme
23+
echo 'modern' > $HOME/.config/ml4w/settings/walker-theme
24+
25+
# Set Window Border
26+
echo 'source = ~/.config/hypr/conf/windows/default.conf' > $HOME/.config/hypr/conf/window.conf
27+
28+
# Set rofi
29+
echo '* { border-width: 2px; }' > $HOME/.config/ml4w/settings/rofi-border.rasi
30+
31+
echo ":: Theme set to Modern"

‎dotfiles/.config/ml4w/themes/modern/theme.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ swaync-client -rs
1717
echo '@import "themes/modern/style.css";' > $HOME/.config/wlogout/style.css
1818

1919
# Set launcher
20-
echo 'walker' > $HOME/.config/ml4w/settings/launcher
20+
echo 'rofi' > $HOME/.config/ml4w/settings/launcher
21+
22+
# Set walker theme
23+
echo 'modern' > $HOME/.config/ml4w/settings/walker-theme
2124

2225
# Set Window Border
2326
echo 'source = ~/.config/hypr/conf/windows/default.conf' > $HOME/.config/hypr/conf/window.conf

‎dotfiles/.config/ml4w/themes/themes.sh‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ launcher=$(cat $HOME/.config/ml4w/settings/launcher)
1010
# -----------------------------------------------------
1111
# Themes
1212
# -----------------------------------------------------
13-
THEME_OPTIONS=$(find "$SCRIPT_DIR" -maxdepth 1 -mindepth 1 -type d | awk -F/ '{ print $NF }')
14-
13+
if command -v walker > /dev/null 2>&1; then
14+
# Walker installed
15+
THEME_OPTIONS=$(find "$SCRIPT_DIR" -maxdepth 1 -mindepth 1 -type d | awk -F/ '{ print $NF }')
16+
else
17+
# Walker not installed
18+
THEME_OPTIONS=$(find "$SCRIPT_DIR" -maxdepth 1 -mindepth 1 -type d -not -name "*walker*" | awk -F/ '{ print $NF }')
19+
fi
1520
# -----------------------------------------------------
1621
# Start Launcher
1722
# -----------------------------------------------------

0 commit comments

Comments
 (0)