Skip to content

Commit ae94539

Browse files
committed
clean up hyprland, xmonad and dmw | boomer
1 parent 94997a9 commit ae94539

36 files changed

Lines changed: 107 additions & 4965 deletions

bin/_tool_search

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ options=(
1717
"wifi"
1818
"youtube"
1919
"kill"
20-
# "chatgpt"
21-
# "claude"
22-
# "deepseek"
23-
# "google search"
24-
# "grok"
25-
# "nh search"
26-
# "perplexity"
27-
# "pypi"
2820
)
2921
# Prompt the user to pick an option using rofi
3022
choice=$(printf "%s\n" "${options[@]}" | rofi -dmenu -p "Choose an action" -theme "$theme")
@@ -40,28 +32,17 @@ case "$choice" in
4032
"audio") rofi-pulse.sh ;;
4133
"kill") rofi-kill.sh ;;
4234
"bg") rofi-bg.sh ;;
35+
"bluetooth") rofi-bluetooth ;;
36+
"wifi") rofi-wifi-menu ;;
4337
"picom") neovide ~/.config/picom/picom.conf ;;
4438
"clipimg") ~/dotnix/bin/clipimg.sh ;;
45-
46-
"lock")
47-
lock.sh
48-
;;
39+
"lock") lock.sh ;;
4940
"color")
5041
sleep 1
5142
color=$(hyprpicker)
5243
echo "$color" | cs
5344
notify-send Color "$color"
5445
;;
55-
56-
"bluetooth")
57-
rofi-bluetooth
58-
;;
59-
"wifi")
60-
rofi-wifi-menu
61-
;;
62-
"chatgpt")
63-
open_browser "https://chat.openai.com/"
64-
;;
6546
"google search")
6647
query=$(rofi -dmenu -p "Enter Google query")
6748
[ -z "$query" ] || open_browser "https://www.google.com/search?q=$(printf "%s" "$query" | jq -sRr @uri)"
@@ -82,22 +63,6 @@ case "$choice" in
8263
query=$(rofi -dmenu -p "Enter home-manager query")
8364
[ -z "$query" ] || open_browser "https://home-manager-options.extranix.com/?release=master&query=$(printf "%s" "$query" | jq -sRr @uri)"
8465
;;
85-
"nh search")
86-
query=$(rofi -dmenu -p "Enter nh query")
87-
[ -z "$query" ] || wezterm start --always-new-process bash -c "nh '$query' | bat --paging=always"
88-
;;
89-
"grok")
90-
open_browser "https://x.com/i/grok"
91-
;;
92-
"claude")
93-
open_browser "https://claude.ai/new"
94-
;;
95-
"deepseek")
96-
open_browser "https://chat.deepseek.com/"
97-
;;
98-
"perplexity")
99-
open_browser "https://www.perplexity.ai/"
100-
;;
10166
"youtube")
10267
query=$(rofi -dmenu -p "Enter YouTube search")
10368
[ -z "$query" ] || open_browser "https://www.youtube.com/results?search_query=$(printf "%s" "$query" | jq -sRr @uri)"

bin/rofi-kill.sh

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,23 @@
11
#!/usr/bin/env bash
2-
#!/bin/bash
32

4-
# Interval (in seconds) between updates
53
UPDATE_INTERVAL=3
6-
7-
# Temp file to store selection
84
SELECTION_FILE=$(mktemp)
95

10-
# Function to get process list
116
get_process_list() {
127
ps -eo pid,etime,%mem,%cpu,comm --sort=-%mem,-%cpu |
138
awk 'NR==1 {printf "%-6s %-10s %-6s %-6s %-20s\n", $1, $2, $3, $4, $5}
14-
NR>1 {printf "%-6s %-10s %-6s %-6s %-20s\n", $1, $2, $3, $4, $5}'
9+
NR>1 {printf "%-6s %-10s %-6s %-6s %-20s\n", $1, $2, $3, $4, $5}'
1510
}
16-
17-
# Function to run rofi with current process list
1811
run_rofi() {
1912
get_process_list | rofi -dmenu -i -p "Kill Process" -multi-select >"$SELECTION_FILE"
2013
}
2114

22-
# Main loop: display rofi and kill selected processes
23-
while true; do
24-
run_rofi
25-
if [[ -s "$SELECTION_FILE" ]]; then
26-
# Extract PID(s) from selected lines (1st column)
27-
PIDS=$(awk '{print $1}' "$SELECTION_FILE")
28-
echo "$PIDS" | xargs -r kill -9
29-
echo "Killed: $PIDS"
30-
break
31-
fi
32-
sleep "$UPDATE_INTERVAL"
33-
done
15+
run_rofi
16+
if [[ -s "$SELECTION_FILE" ]]; then
17+
PIDS=$(awk '{print $1}' "$SELECTION_FILE")
18+
echo "$PIDS" | xargs -r kill -9
19+
echo "Killed: $PIDS"
20+
break
21+
fi
3422

35-
# Cleanup
3623
rm "$SELECTION_FILE"

bin/which-wm.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
#!/usr/bin/env bash
22

3-
# List of supported window managers
43
wm_list=("awesome" "niri" "i3" "sway" "dwm" "xmonad" "Hyprland" "river" "fht-compositor")
54

6-
# Function to check if a process exists
75
is_running() {
86
pgrep -x "$1" >/dev/null 2>&1
97
}
108

11-
# Check for each WM
129
for wm in "${wm_list[@]}"; do
1310
if is_running "$wm"; then
1411
echo "$wm"

config/hypr/screenShader.frag

Whitespace-only changes.

config/waybar/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ tooltip {
195195
padding-right: 10px;
196196
}
197197

198-
window#waybar.wezterm {
198+
window#waybar.ghostty {
199199
background-color: #111111;
200200
color: #ffffff;
201201
}
202202

203-
window#waybar.chrome {
203+
window#waybar.firefox {
204204
background-color: #eeeeee;
205205
color: #000000;
206206
}

config/wezterm/keys.lua

Lines changed: 0 additions & 117 deletions
This file was deleted.

config/wezterm/mouse.lua

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)