blob: cd60461938625aff511c1ed217017e039f0669d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#!/bin/bash
# Rofi menu for Quick Edit / View of Settings (SUPER E)
# define your preferred text editor and terminal to use
editor=nano
tty=kitty
configs="$HOME/.config/hypr/configs"
UserConfigs="$HOME/.config/hypr/UserConfigs"
menu(){
printf "1. edit Env-variables\n"
printf "2. edit Window-Rules\n"
printf "3. edit Startup_Apps\n"
printf "4. edit User-Keybinds\n"
printf "5. edit Monitors\n"
printf "6. edit Laptop-Keybinds\n"
printf "7. edit User-Settings\n"
printf "8. edit Workspace-Rules\n"
printf "9. edit Default-Settings\n"
printf "10. edit Default-Keybinds\n"
}
main() {
choice=$(menu | rofi -i -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
case $choice in
1)
$tty $editor "$UserConfigs/ENVariables.conf"
;;
2)
$tty $editor "$UserConfigs/WindowRules.conf"
;;
3)
$tty $editor "$UserConfigs/Startup_Apps.conf"
;;
4)
$tty $editor "$UserConfigs/UserKeybinds.conf"
;;
5)
$tty $editor "$UserConfigs/Monitors.conf"
;;
6)
$tty $editor "$UserConfigs/Laptops.conf"
;;
7)
$tty $editor "$UserConfigs/UserSettings.conf"
;;
8)
$tty $editor "$UserConfigs/WorkspaceRules.conf"
;;
9)
$tty $editor "$configs/Settings.conf"
;;
10)
$tty $editor "$configs/Keybinds.conf"
;;
*)
;;
esac
}
main
|