Compare commits
2 commits
b2ea9d77be
...
058b50fdf9
Author | SHA1 | Date | |
---|---|---|---|
058b50fdf9 | |||
3f9f36ef4d |
87
eggs/alacritty/.config/alacritty/alacritty.yml
Normal file
|
@ -0,0 +1,87 @@
|
|||
env:
|
||||
TERM: xterm-256color
|
||||
colors:
|
||||
bright:
|
||||
black: "#928374"
|
||||
blue: "#83a598"
|
||||
cyan: "#8ec07c"
|
||||
green: "#b8bb26"
|
||||
magenta: "#d3869b"
|
||||
red: "#fb4934"
|
||||
white: "#ebdbb2"
|
||||
yellow: "#fabd2f"
|
||||
normal:
|
||||
black: "#665c54" # this is used for comments in bash, so let's make it visible...
|
||||
blue: "#458588"
|
||||
cyan: "#689d6a"
|
||||
green: "#98971a"
|
||||
magenta: "#b16286"
|
||||
red: "#cc241d"
|
||||
white: "#a89984"
|
||||
yellow: "#d79921"
|
||||
primary:
|
||||
background: "#282828"
|
||||
bg_darker: "#1d2021"
|
||||
bg_lighter: "#3c3836"
|
||||
foreground: "#ebdbb2"
|
||||
|
||||
cursor:
|
||||
style:
|
||||
shape: "Block"
|
||||
blinking: "Never"
|
||||
unfocused_hollow: true
|
||||
font:
|
||||
#normal: { "family": "FiraMono Nerd Font" }
|
||||
#normal: { "family": "Menlo" }
|
||||
#normal: { "family": "APL 385 Unicode" }
|
||||
normal: { "family": "Fira Code" }
|
||||
#normal: { "family": "Jetbrains Mono" }
|
||||
#normal: { "family": "Victor Mono" }
|
||||
#normal: { "family": "Monoid" }
|
||||
#normal: { "family": "Mono Lisa" }
|
||||
#normal: { "family": "cherry" }
|
||||
#normal: { "family": "scientifica" }
|
||||
#normal: { "family": "cozette" }
|
||||
#normal: { "family": "Terminus" }
|
||||
offset: { "x": 0, "y": 0 }
|
||||
size: 14
|
||||
|
||||
key_bindings:
|
||||
- { "action": "SpawnNewInstance", "key": "N", "mods": "Control|Shift" }
|
||||
# let's increase font size 12 times every C-S-+, and decrease 12 times on C-S-A-+... lmao
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "IncreaseFontSize", "key": "Plus", "mods": "Control|Shift" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
- { "action": "DecreaseFontSize", "key": "Plus", "mods": "Control|Shift|Alt" }
|
||||
live_config_reload: true
|
||||
mouse:
|
||||
double_click: { "threshold": 300 }
|
||||
hide_when_typing: true
|
||||
triple_click: { "threshold": 300 }
|
||||
|
||||
window:
|
||||
dynamic_padding: true
|
||||
dynamic_title: true
|
||||
padding: { "x": 10, "y": 10 }
|
||||
#padding: { "x": 20, "y": 20 }
|
||||
opacity: 1
|
35
eggs/eww-bar/.config/eww-bar/audio.sh
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
case "$1" in
|
||||
"symbol")
|
||||
pactl subscribe | grep --line-buffered "Event 'change' on client" | while read -r; do
|
||||
case "$(pactl get-default-sink)" in
|
||||
*Arctis_9*) echo "";;
|
||||
#*Arctis_9*) echo "";;
|
||||
*) echo "";;
|
||||
esac
|
||||
done
|
||||
;;
|
||||
"volume")
|
||||
pamixer --get-volume;
|
||||
pactl subscribe \
|
||||
| grep --line-buffered "Event 'change' on sink " \
|
||||
| while read -r evt;
|
||||
do pamixer --get-volume | cut -d " " -f1;
|
||||
done
|
||||
;;
|
||||
"toggle")
|
||||
speaker_sink_id=$(pamixer --list-sinks | grep "Komplete_Audio_6" | awk '{print $1}')
|
||||
game_sink_id=$(pamixer --list-sinks | grep "stereo-game" | awk '{print $1}')
|
||||
case "$(pactl get-default-sink)" in
|
||||
*Arctis_9*)
|
||||
eww -c ~/.config/eww-bar update audio_sink=""
|
||||
pactl set-default-sink $speaker_sink_id
|
||||
;;
|
||||
*)
|
||||
eww -c ~/.config/eww-bar update audio_sink=""
|
||||
pactl set-default-sink $game_sink_id
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
127
eggs/eww-bar/.config/eww-bar/eww.scss
Normal file
|
@ -0,0 +1,127 @@
|
|||
* {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
window {
|
||||
background: #282828;
|
||||
color: #ebdbb2;
|
||||
font-size: 14px;
|
||||
|
||||
& > * {
|
||||
margin: 3px;
|
||||
}
|
||||
font-family: "Terminus (TTF)";
|
||||
}
|
||||
|
||||
.workspaces {
|
||||
button {
|
||||
background: none;
|
||||
margin: 3px;
|
||||
padding-left: 1px;
|
||||
&.inactive {
|
||||
color: #888974;
|
||||
}
|
||||
&.active {
|
||||
color: #8ec07c;
|
||||
}
|
||||
&.occupied {
|
||||
font-size: 1.01rem;
|
||||
}
|
||||
&.empty {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.segment-top {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.segment-bottom {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.volume-metric {
|
||||
background-color: #1d2021;
|
||||
color: #ebdbb2;
|
||||
padding: 0;
|
||||
|
||||
.volume-top > scale {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
slider {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
scale trough highlight {
|
||||
all: unset;
|
||||
//background-color: #8ec07c;
|
||||
background-color: #665c54;
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
scale trough {
|
||||
all: unset;
|
||||
background-color: #1d2021;
|
||||
min-width: 34px;
|
||||
min-height: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.large-symbol {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.metric {
|
||||
background-color: #1d2021;
|
||||
padding: 5px 2px;
|
||||
}
|
||||
.metric-icon {
|
||||
font-family: "Font Awesome 6 Free";
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
.time {
|
||||
padding-top: 7px;
|
||||
padding-bottom: 7px;
|
||||
color: #a89984;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.music_popup {
|
||||
all: unset;
|
||||
background-color: #1d2021;
|
||||
padding: 0px 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// System Tray
|
||||
menu {
|
||||
padding: 5px 5px;
|
||||
background-color: #1d2021;
|
||||
|
||||
>menuitem {
|
||||
font-size: 14px;
|
||||
padding: 2px 5px;
|
||||
//color: $foreground;
|
||||
|
||||
&:disabled label {
|
||||
color: #928374;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: #282828;
|
||||
}
|
||||
}
|
||||
|
||||
separator {
|
||||
padding-top: 1px;
|
||||
|
||||
&:last-child {
|
||||
padding: unset;
|
||||
}
|
||||
}
|
||||
}
|
148
eggs/eww-bar/.config/eww-bar/eww.yuck
Normal file
|
@ -0,0 +1,148 @@
|
|||
(defwidget bar [screen]
|
||||
(centerbox :orientation "v"
|
||||
(box :class "segment-top"
|
||||
:valign "start"
|
||||
(top :screen screen))
|
||||
(box :valign "center"
|
||||
:class "middle"
|
||||
(middle :screen screen))
|
||||
(box :valign "end"
|
||||
:class "segment-bottom"
|
||||
(bottom :screen screen))))
|
||||
|
||||
(defwidget top [screen]
|
||||
(box :orientation "v"
|
||||
;(workspaces :screen {screen == 1 ? "DP-2" : "HDMI-A-1"})
|
||||
(systray :orientation "v" :icon-size 15 :spacing 10)))
|
||||
;(workspaces :wsp_yuck {screen == 1 ? workspaces_1_yuck : workspaces_2_yuck}))
|
||||
|
||||
(defwidget workspaces [screen]
|
||||
(box :orientation "v" :class "workspaces"
|
||||
(for wsp in {workspaces[screen]}
|
||||
(button :class "${wsp.focused ? "active" : "inactive"}"
|
||||
:onclick "swaymsg workspace ${wsp.name}"
|
||||
{wsp.name}))))
|
||||
|
||||
|
||||
;(defwidget workspaces [wsp_yuck]
|
||||
;(literal :content wsp_yuck))
|
||||
|
||||
(defwidget middle [] (time))
|
||||
(defwidget time []
|
||||
(box :orientation "v"
|
||||
:class "time"
|
||||
hour min sec))
|
||||
|
||||
|
||||
(defwidget metric [icon ?font-size]
|
||||
(box :class "metric"
|
||||
:orientation "v"
|
||||
(label :class "metric-icon"
|
||||
:style {font-size != "" ? "font-size: ${font-size}rem;" : ""}
|
||||
:text icon)
|
||||
(children)))
|
||||
|
||||
(defwidget bottom [screen]
|
||||
(box :orientation "v"
|
||||
:valign "end"
|
||||
:space-evenly true
|
||||
:spacing "5"
|
||||
|
||||
(volume)
|
||||
|
||||
(metric :icon ""
|
||||
:font-size 0.8
|
||||
"${round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}%")
|
||||
|
||||
(metric :icon "" "${round(EWW_RAM.used_mem_perc, 0)}%")
|
||||
|
||||
(metric :icon "" "${round(EWW_CPU.avg, 0)}%")
|
||||
|
||||
(box :class "metric" (date))))
|
||||
|
||||
|
||||
(defwidget volume []
|
||||
(box :class "volume-metric"
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "fill"
|
||||
:vexpand false
|
||||
(scale :orientation "h"
|
||||
:min 0
|
||||
:max 100
|
||||
:onchange "pamixer --set-volume $(echo {} | sed 's/\\..*//g')"
|
||||
:value volume)
|
||||
(eventbox :onscroll "if [ '{}' == 'up' ]; then pamixer -i 5; else pamixer -d 5; fi"
|
||||
:vexpand true
|
||||
:valign "fill"
|
||||
(box :orientation "v"
|
||||
:valign "fill"
|
||||
:vexpand true
|
||||
(button :onclick "rofi -theme ~/.config/rofi/launchers/type-4/style-2.rasi -show rofi-sound -modi 'rofi-sound:rofi-sound-output-chooser' &"
|
||||
:onrightclick "./audio.sh toggle"
|
||||
|
||||
|
||||
(label :text audio_sink))
|
||||
(button :onclick "pavucontrol &"
|
||||
"${volume}%")))))
|
||||
|
||||
|
||||
|
||||
|
||||
(defwidget large-sym [sym]
|
||||
(label :class "metric-icon large-symbol" :text sym))
|
||||
|
||||
(defwidget date []
|
||||
(box :orientation "v"
|
||||
:halign "center"
|
||||
day_word day month year))
|
||||
|
||||
|
||||
(defwidget niri-scroller []
|
||||
(eventbox :onscroll "if [ '{}' == 'down' ]; then niri msg action focus-column-right; else niri msg action focus-column-left; fi"
|
||||
:vexpand true
|
||||
:valign "fill"
|
||||
:style "background-color: #8ec07c; border-radius: 10px;"))
|
||||
|
||||
|
||||
; TODO make this not hacky
|
||||
(defvar audio_sink "")
|
||||
|
||||
(deflisten volume :initial "0" "./audio.sh volume")
|
||||
(deflisten workspaces :initial '{"DP-2": [], "HDMI-A-1": []}' "./swayspaces.py")
|
||||
|
||||
|
||||
(defpoll hour :interval "1s" "date +%H")
|
||||
(defpoll min :interval "1s" "date +%M")
|
||||
(defpoll sec :interval "1s" "date +%S")
|
||||
|
||||
(defpoll day_word :interval "10m" "date +%a | tr [:upper:] [:lower:]")
|
||||
(defpoll day :interval "10m" "date +%d")
|
||||
(defpoll month :interval "1h" "date +%m")
|
||||
(defpoll year :interval "1h" "date +%y")
|
||||
|
||||
(defvar workspaces_1_yuck "")
|
||||
(defvar workspaces_2_yuck "")
|
||||
|
||||
(defwindow niri_scroller
|
||||
:monitor '["<primary>", "DisplayPort-0", "PHL 345B1C"]'
|
||||
:stacking "fg"
|
||||
:geometry (geometry :x 0 :y 0 :width "800px" :height "5px" :anchor "bottom center")
|
||||
:reserve (struts :distance "10px" :side "bottom")
|
||||
:exclusive false
|
||||
(niri-scroller))
|
||||
|
||||
(defwindow bar_1
|
||||
:monitor '["<primary>", "DisplayPort-0", "PHL 345B1C"]'
|
||||
; :monitor "DisplayPort-0"
|
||||
:stacking "fg"
|
||||
:geometry (geometry :x 0 :y 0 :width "40px" :height "100%" :anchor "center left")
|
||||
:reserve (struts :distance "40px" :side "left")
|
||||
:exclusive true
|
||||
(bar :screen 1))
|
||||
|
||||
(defwindow bar_2
|
||||
:monitor '[2, "HDMI-A-1"]'
|
||||
:geometry (geometry :x 0 :y 0 :width "40px" :height "100%" :anchor "top left")
|
||||
:reserve (struts :distance "40px" :side "left")
|
||||
(bar :screen 2))
|
BIN
eggs/eww-bar/.config/eww-bar/showcase.png
Normal file
After Width: | Height: | Size: 198 KiB |
93
eggs/eww-bar/.config/eww-bar/swayspaces.py
Executable file
|
@ -0,0 +1,93 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess
|
||||
import json
|
||||
|
||||
|
||||
def get_workspaces():
|
||||
output = subprocess.check_output(["swaymsg", "-t", "get_workspaces"])
|
||||
return json.loads(output.decode("utf-8"))
|
||||
|
||||
|
||||
def generate_workspace_data() -> dict:
|
||||
data = {}
|
||||
for wsp in get_workspaces():
|
||||
if wsp["output"] not in data:
|
||||
data[wsp["output"]] = []
|
||||
data[wsp["output"]].append(
|
||||
{
|
||||
"name": wsp["name"],
|
||||
"monitor": wsp["output"],
|
||||
"focused": wsp["focused"],
|
||||
"visible": wsp["visible"],
|
||||
}
|
||||
)
|
||||
return data
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
process = subprocess.Popen(
|
||||
["swaymsg", "-t", "subscribe", "-m", '["workspace"]', "--raw"],
|
||||
stdout=subprocess.PIPE,
|
||||
)
|
||||
if process.stdout is None:
|
||||
print("Error: could not subscribe to sway events")
|
||||
exit(1)
|
||||
while True:
|
||||
print(json.dumps(generate_workspace_data()), flush=True)
|
||||
line = process.stdout.readline().decode("utf-8")
|
||||
if line == "":
|
||||
break
|
||||
|
||||
# #!/usr/bin/env python3
|
||||
#
|
||||
# import subprocess
|
||||
# import json
|
||||
#
|
||||
# WSP_COUNT = 5
|
||||
# MONITOR_COUNT = 2
|
||||
#
|
||||
#
|
||||
# def get_workspaces():
|
||||
# output = subprocess.check_output(["swaymsg", "-t", "get_workspaces"])
|
||||
# return json.loads(output.decode("utf-8"))
|
||||
#
|
||||
#
|
||||
# def generate_workspace_data_for_monitor(monitor: int) -> list[dict]:
|
||||
# workspaces = {w["name"]: w for w in get_workspaces()}
|
||||
# data = []
|
||||
# for i in range(WSP_COUNT):
|
||||
# name = f"{monitor+1}{i+1}"
|
||||
# wsp_data = workspaces.get(name)
|
||||
# entry = {
|
||||
# "name": name,
|
||||
# "monitor": monitor,
|
||||
# "occupied": False,
|
||||
# "focused": False,
|
||||
# "visible": False,
|
||||
# }
|
||||
# if wsp_data is not None:
|
||||
# entry["focused"] = wsp_data["focused"]
|
||||
# entry["visible"] = wsp_data["visible"]
|
||||
# entry["occupied"] = True
|
||||
# data.append(entry)
|
||||
# return data
|
||||
#
|
||||
#
|
||||
# def generate_workspace_data() -> dict:
|
||||
# return {i: generate_workspace_data_for_monitor(i) for i in range(MONITOR_COUNT)}
|
||||
#
|
||||
#
|
||||
# if __name__ == "__main__":
|
||||
# process = subprocess.Popen(
|
||||
# ["swaymsg", "-t", "subscribe", "-m", '["workspace"]', "--raw"],
|
||||
# stdout=subprocess.PIPE,
|
||||
# )
|
||||
# if process.stdout is None:
|
||||
# print("Error: could not subscribe to sway events")
|
||||
# exit(1)
|
||||
# while True:
|
||||
# print(json.dumps(generate_workspace_data()), flush=True)
|
||||
# line = process.stdout.readline().decode("utf-8")
|
||||
# if line == "":
|
||||
# break
|
39
eggs/eww-bar/.config/eww-bar/update-workspaces.sh
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
gib_workspace_names() {
|
||||
wmctrl -d \
|
||||
| awk '{ print $1 " " $2 " " $9 }' \
|
||||
| grep -v NSP \
|
||||
| grep "${1}_"
|
||||
}
|
||||
|
||||
gib_workspace_yuck() {
|
||||
buffered=""
|
||||
gib_workspace_names $1 | while read -r id active name; do
|
||||
name="${name#*_}"
|
||||
if [ "$active" == '*' ]; then
|
||||
active_class="active"
|
||||
else
|
||||
active_class="inactive"
|
||||
fi
|
||||
|
||||
if wmctrl -l | grep --regexp '.*\s\+'"$id"'\s\+.*' >/dev/null; then
|
||||
button_class="occupied"
|
||||
button_name="◆"
|
||||
else
|
||||
button_class="empty"
|
||||
button_name="◇"
|
||||
fi
|
||||
buffered+="(button :class \"$button_class $active_class\" :onclick \"wmctrl -s $id\" \"$button_name\")"
|
||||
if [ $button_class = "occupied" -o $active_class = "active" ]; then
|
||||
echo -n "$buffered"
|
||||
buffered=""
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
box_attrs=':orientation "v" :class "workspaces" :space-evenly true :halign "center" :valign "center" :vexpand true '
|
||||
|
||||
eww -c ~/.config/eww-bar update workspaces_1_yuck="(box $box_attrs $(gib_workspace_yuck 1))"
|
||||
eww -c ~/.config/eww-bar update workspaces_2_yuck="(box $box_attrs $(gib_workspace_yuck 2))"
|
39
eggs/eww-bar/.config/eww-bar/workspaces.sh
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
monitor="$1"
|
||||
|
||||
gib_workspace_names() {
|
||||
wmctrl -d \
|
||||
| awk '{ print $1 " " $2 " " $9 }' \
|
||||
| grep -v NSP \
|
||||
| grep "${monitor}_"
|
||||
}
|
||||
|
||||
gib_workspace_yuck() {
|
||||
buffered=""
|
||||
gib_workspace_names | while read -r id active name; do
|
||||
name="${name#*_}"
|
||||
if [ "$active" == '*' ]; then
|
||||
active_class="active"
|
||||
else
|
||||
active_class="inactive"
|
||||
fi
|
||||
|
||||
if wmctrl -l | grep --regexp '.*\s\+'"$id"'\s\+.*' >/dev/null; then
|
||||
button_class="occupied"
|
||||
button_name="◆"
|
||||
else
|
||||
button_class="empty"
|
||||
button_name="◇"
|
||||
fi
|
||||
buffered+="(button :class \"$button_class $active_class\" :onclick \"wmctrl -s $id\" \"$button_name\")"
|
||||
if [ $button_class = "occupied" -o $active_class = "active" ]; then
|
||||
echo -n "$buffered"
|
||||
buffered=""
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
xprop -spy -root _NET_CURRENT_DESKTOP | while read -r; do
|
||||
echo '(box :orientation "v" :class "workspaces" :space-evenly true :halign "center" :valign "center" :vexpand true '"$(gib_workspace_yuck)"')'
|
||||
done
|
52
eggs/eww-laptop/.config/eww/eww.scss
Normal file
|
@ -0,0 +1,52 @@
|
|||
.bar * {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
.bar {
|
||||
background-color: #1d2021;
|
||||
color: #ebdbb2;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
font-family: "CozetteVector";
|
||||
font-size: 12px;
|
||||
|
||||
.current {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
menuitem window {
|
||||
background: #282828;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
// System Tray
|
||||
.tray menu {
|
||||
padding: 5px 5px;
|
||||
background-color: $background;
|
||||
|
||||
>menuitem {
|
||||
font-family: JetBrainsMono NF;
|
||||
font-size: 14px;
|
||||
padding: 2px 5px;
|
||||
color: $foreground;
|
||||
|
||||
&:disabled label {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $gray;
|
||||
}
|
||||
}
|
||||
|
||||
separator {
|
||||
background-color: $foreground;
|
||||
padding-top: 1px;
|
||||
|
||||
&:last-child {
|
||||
padding: unset;
|
||||
}
|
||||
}
|
||||
}
|
43
eggs/eww-laptop/.config/eww/eww.yuck
Normal file
|
@ -0,0 +1,43 @@
|
|||
(deflisten workspaces :initial "[]" "bash ./scripts/get-workspaces")
|
||||
(deflisten current_workspace :initial "1" "bash ./scripts/get-active-workspace")
|
||||
(defpoll time :interval "1s" "date '+%d.%m.%Y - %H:%M:%S'")
|
||||
|
||||
(defwidget workspaces []
|
||||
(eventbox :halign "start"
|
||||
:onscroll "bash ${EWW_CONFIG_DIR}/scripts/change-active-workspace {} ${current_workspace}"
|
||||
:class "workspaces-widget"
|
||||
(box :space-evenly true
|
||||
(for workspace in workspaces
|
||||
(eventbox :onclick "hyprctl dispatch workspace ${workspace.id}"
|
||||
(label :class {workspace.id == current_workspace ? "current" : ""}
|
||||
:text " ${workspace.windows > 0 ? "◆" : "◇"} "))))))
|
||||
|
||||
(defwidget bar []
|
||||
(centerbox :class "bar"
|
||||
(workspaces)
|
||||
"${time}"
|
||||
(box :halign "end"
|
||||
:space-evenly true
|
||||
:width "150"
|
||||
" ${EWW_BATTERY["BAT1"].capacity}%"
|
||||
" ${round(EWW_RAM.used_mem_perc, 0)}%"
|
||||
" ${round(EWW_CPU.avg, 0)}%")))
|
||||
|
||||
|
||||
(defwindow bar
|
||||
:monitor 0
|
||||
:geometry (geometry :x 0 :y 0 :width "100%" :height "30px" :anchor "top center")
|
||||
:stacking "fg"
|
||||
:exclusive true
|
||||
(bar))
|
||||
|
||||
|
||||
(defwindow test
|
||||
:monitor 0
|
||||
:exclusive true
|
||||
:geometry (geometry :x 0 :y 0 :width "100%" :height "20px" :anchor "top center")
|
||||
(box
|
||||
"${EWW_NET["enp34s0"]}"
|
||||
(tooltip
|
||||
"${time}"
|
||||
(button "test"))))
|
21
eggs/eww-laptop/.config/eww/scripts/change-active-workspace.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#! /bin/bash
|
||||
function clamp {
|
||||
min=$1
|
||||
max=$2
|
||||
val=$3
|
||||
python -c "print(max($min, min($val, $max)))"
|
||||
}
|
||||
|
||||
direction=$1
|
||||
current=$2
|
||||
if test "$direction" = "down"
|
||||
then
|
||||
target=$(clamp 1 10 $(($current+1)))
|
||||
echo "jumping to $target"
|
||||
hyprctl dispatch workspace $target
|
||||
elif test "$direction" = "up"
|
||||
then
|
||||
target=$(clamp 1 10 $(($current-1)))
|
||||
echo "jumping to $target"
|
||||
hyprctl dispatch workspace $target
|
||||
fi
|
3
eggs/eww-laptop/.config/eww/scripts/get-active-workspace
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
hyprctl monitors -j | jq --raw-output .[0].activeWorkspace.id
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 grep '^workspace>>' | stdbuf -o0 awk -F '>>|,' '{print $2}'
|
11
eggs/eww-laptop/.config/eww/scripts/get-workspaces
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
spaces (){
|
||||
WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries')
|
||||
seq 1 10 | jq --argjson windows "${WORKSPACE_WINDOWS}" --slurp -Mc 'map(tostring) | map({id: ., windows: ($windows[.]//0)})'
|
||||
}
|
||||
|
||||
spaces
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
||||
spaces
|
||||
done
|
0
eggs/eww/.config/eww/asdf/eww.scss
Normal file
27
eggs/eww/.config/eww/asdf/eww.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<eww>
|
||||
<definitions>
|
||||
<def name="something">
|
||||
<box class="{{some_var}}" halign="start">
|
||||
<button onclick="notify-send 'test' 'message'">
|
||||
{{some_script}}
|
||||
</button>
|
||||
</box>
|
||||
</def>
|
||||
</definitions>
|
||||
<variables>
|
||||
<var name="some_var">
|
||||
foo
|
||||
</var>
|
||||
<script-var name="some_script" interval="1s">
|
||||
date | sed 's/:/X/g' | rev
|
||||
</script-var>
|
||||
</variables>
|
||||
<windows>
|
||||
<window name="foo">
|
||||
<geometry anchor="center" width="100px" height="10%"/>
|
||||
<widget>
|
||||
<something arg="value"/>
|
||||
</widget>
|
||||
</window>
|
||||
</windows>
|
||||
</eww>
|
129
eggs/eww/.config/eww/eww.scss
Normal file
|
@ -0,0 +1,129 @@
|
|||
entry {
|
||||
padding: 10px;
|
||||
background: red;
|
||||
}
|
||||
|
||||
.main_window {
|
||||
all: unset;
|
||||
background: #1d2021;
|
||||
}
|
||||
|
||||
.volume_popup {
|
||||
&,
|
||||
& * {
|
||||
all: unset;
|
||||
}
|
||||
background: #1d2021;
|
||||
border-radius: 50px;
|
||||
|
||||
scale trough {
|
||||
padding: 10px;
|
||||
border-radius: 50px;
|
||||
background-color: #ebdbb2;
|
||||
|
||||
slider {
|
||||
background: red;
|
||||
}
|
||||
|
||||
highlight {
|
||||
padding: 10px;
|
||||
min-height: 30px;
|
||||
border-bottom-left-radius: 50px;
|
||||
border-bottom-right-radius: 50px;
|
||||
background-color: #8ec07c;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.music {
|
||||
&,
|
||||
& * {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
.data {
|
||||
margin: 15px;
|
||||
margin-left: 45px;
|
||||
|
||||
.songname {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
.key {
|
||||
color: #928374;
|
||||
}
|
||||
}
|
||||
|
||||
.buttons {
|
||||
min-height: 50px;
|
||||
background: #1d2021;
|
||||
box-shadow: 0 0 10px -5px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
scale trough {
|
||||
padding: 10px;
|
||||
border-radius: 50px;
|
||||
background-color: #ebdbb2;
|
||||
|
||||
highlight {
|
||||
padding: 10px;
|
||||
min-width: 30px;
|
||||
border-bottom-left-radius: 50px;
|
||||
border-bottom-right-radius: 50px;
|
||||
background-color: #8ec07c;
|
||||
}
|
||||
}
|
||||
|
||||
.this {
|
||||
border: 10px solid blue;
|
||||
}
|
||||
.shit {
|
||||
border: 10px solid green;
|
||||
}
|
||||
.fuck {
|
||||
border-radius: 100px;
|
||||
}
|
||||
|
||||
.whatever {
|
||||
border: 2px solid green;
|
||||
}
|
||||
|
||||
.lol {
|
||||
color: red;
|
||||
}
|
||||
|
||||
window {
|
||||
//background: none;
|
||||
}
|
||||
|
||||
progressbar {
|
||||
min-width: 1px;
|
||||
|
||||
trough {
|
||||
min-width: 1px;
|
||||
//background-color: #ebdbb255;
|
||||
}
|
||||
|
||||
&, & * {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
progress {
|
||||
min-width: 1px;
|
||||
//background-color: #8CD68F;
|
||||
//box-shadow: 0 0 10px 3px #8CD68F22;
|
||||
}
|
||||
}
|
||||
|
||||
progressbar progress {
|
||||
background: repeating-linear-gradient(0deg, #458588, #8ec07c); /*, #b8bb26, #fabd2f);*/
|
||||
background-size: 100% 200%;
|
||||
|
||||
animation: AnimationName 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes AnimationName {
|
||||
0%{background-position:0% 0%}
|
||||
100%{background-position:0% 200%}
|
||||
}
|
226
eggs/eww/.config/eww/eww.xml
Normal file
|
@ -0,0 +1,226 @@
|
|||
<eww>
|
||||
|
||||
<includes>
|
||||
|
||||
<file path="./foo.xml"/>
|
||||
</includes>
|
||||
<definitions>
|
||||
|
||||
<def name="pxbar">
|
||||
<progress value="{{volume}}" orientation="v" halign="start" flipped="true"/>
|
||||
</def>
|
||||
|
||||
<def name="revtest">
|
||||
<box>
|
||||
<revealer reveal="{{reveal}}" transition="slideleft" duration="300ms">
|
||||
hello, world
|
||||
</revealer>
|
||||
</box>
|
||||
</def>
|
||||
|
||||
<def name="test">
|
||||
<box class="{{some_var}}" space-evenly="false" spacing="10">
|
||||
<scale value="{{scaleval}}" orientation="v" min="0" max="100" flipped="true" />
|
||||
<box space-evenly="false" orientation="v">
|
||||
asdasdfflmao
|
||||
|
||||
|
||||
<box> | {{ round((EWW_NET["enp34s0"].NET_UP) * 8 / (1024 * 1024), 2)}}
|
||||
{{ round((EWW_NET["enp34s0"].NET_DOWN) * 8 / (1024 * 1024), 2)}}
|
||||
| {{EWW_RAM}}
|
||||
| {{ round((EWW_DISK["/"].free) / (1024 * 1024 * 1024), 2)}}
|
||||
</box>
|
||||
|
||||
|
||||
<!--{{(EWW_NET[kek].NET_UP) * 10}}-->
|
||||
|
||||
asdf {{ round(0.1234, 2) }}
|
||||
</box>
|
||||
|
||||
|
||||
<button onclick="pgrep 'eww' && echo '' || echo ''" cursor="wait">Test bug</button>
|
||||
<revealer reveal="{{reveal}}" transition="slideright" duration="300ms">
|
||||
<button
|
||||
onclick="notify-send 'ree' 'this is {{shit}}'"
|
||||
onmiddleclick="notify-send 'ree' 'MITTE'"
|
||||
onrightclick="notify-send 'ree' 'RECHTS'"
|
||||
>
|
||||
click me
|
||||
</button>
|
||||
</revealer>
|
||||
<calendar show-heading="false" show-day-names="false" day="2" onclick="notify-send 'asdf' '{}'" />
|
||||
notify-send 'ree' 'this is {{shit}}'
|
||||
<multiple text="{{shit}}" />
|
||||
|
||||
<!--<literal content="{{code}}"/>-->
|
||||
|
||||
</box>
|
||||
</def>
|
||||
|
||||
<def name="multiple">
|
||||
<box orientation="v" space-evenly="false">
|
||||
<box>{{text}}test</box>
|
||||
|
||||
<box class="whatever lol">{{text}}</box>
|
||||
<box style="color: blue;">{{text}}</box>
|
||||
<box>{{text}}</box>
|
||||
<box>{{text}}</box>
|
||||
|
||||
<label onscroll="notify-send '{{shit}}' {}" text="reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" limit-width="5" wrap="true" />
|
||||
<!--<input onchange="eww update code='{}'" />-->
|
||||
{{date}}
|
||||
{{date-tail}}
|
||||
</box>
|
||||
</def>
|
||||
|
||||
<def name="volume_popup">
|
||||
<box orientation="v" space-evenly="true">
|
||||
<scale flipped="true" orientation="v" value="{{volume}}" min="0" max="100" onchange="amixer sset 'Master' {}%" />
|
||||
</box>
|
||||
</def>
|
||||
|
||||
<def name="music">
|
||||
<box class="hi ho" orientation="h" valign="start" space-evenly="false" hexpand="true">
|
||||
<image visible="{{song-image-visible}}" path="{{song-image}}" width="150" height="150" />
|
||||
<box orientation="v" halign="fill" space-evenly="false" vexpand="true" hexpand="true">
|
||||
<box class="data" vexpand="true">
|
||||
<box orientation="v" halign="start">
|
||||
<label class="songname" halign="start" limit-width="30" text="{{song-name}}" />
|
||||
<box space-evenly="false" halign="start">
|
||||
<label class="key" text="Album: " />
|
||||
<label halign="start" limit-width="30" text="{{song-album}}" />
|
||||
</box>
|
||||
<box space-evenly="false" halign="start">
|
||||
<label class="key" text="By: " />
|
||||
<label halign="start" limit-width="30" text="{{song-artist}}" />
|
||||
</box>
|
||||
</box>
|
||||
</box>
|
||||
<box class="buttons" hexpand="true">
|
||||
<button onclick="playerctl previous"></button>
|
||||
<button onclick="playerctl play-pause">{{song-playpause}}</button>
|
||||
<button onclick="playerctl next"></button>
|
||||
</box>
|
||||
</box>
|
||||
</box>
|
||||
</def>
|
||||
|
||||
</definitions>
|
||||
|
||||
|
||||
<variables>
|
||||
<script-var name="volume">
|
||||
amixer sget 'Master' | grep 'Front Left:' | sed 's/.*\[\(.*\)%\].*/\1/g';
|
||||
LANG=C pactl subscribe | grep --line-buffered sink | while read -r _; do
|
||||
amixer sget 'Master' | grep 'Front Left:' | sed 's/.*\[\(.*\)%\].*/\1/g'
|
||||
done
|
||||
</script-var>
|
||||
|
||||
<var name="reveal">
|
||||
false
|
||||
</var>
|
||||
<var name="shit">
|
||||
enp34s0
|
||||
</var>
|
||||
<var name="some_var"></var>
|
||||
<var name="code"></var>
|
||||
|
||||
<script-var name="scaleval" interval="50ms">
|
||||
echo 25
|
||||
</script-var>
|
||||
|
||||
|
||||
<var name="song-image"></var>
|
||||
<var name="song-image-visible">true</var>
|
||||
<var name="song-name"></var>
|
||||
<var name="song-album"></var>
|
||||
<var name="song-artist"></var>
|
||||
<var name="song-show-progress">false</var>
|
||||
<var name="song-playpause"></var>
|
||||
<!--<script-var name="date" interval="1s">-->
|
||||
<!--date-->
|
||||
<!--</script-var>-->
|
||||
<script-var name="date-tail">
|
||||
<!--while true; do-->
|
||||
<!--sleep 1;-->
|
||||
<!--notify-send 'hi' 'ho'-->
|
||||
date
|
||||
<!--done-->
|
||||
</script-var>
|
||||
|
||||
<script-var name="date" interval="1s">
|
||||
date
|
||||
</script-var>
|
||||
|
||||
|
||||
<script-var interval="100ms" name="lmao">
|
||||
cat ~/fuck
|
||||
</script-var>
|
||||
|
||||
|
||||
<var name="bruh">
|
||||
{"hi": "ho", "hey": "fuck", "lol": "test" }
|
||||
</var>
|
||||
|
||||
|
||||
|
||||
|
||||
<script-var name="kek" interval="1s">
|
||||
/home/leon/reee.sh
|
||||
</script-var>
|
||||
|
||||
|
||||
|
||||
<!--<script-var name="xyz">-->
|
||||
<!--tail -F /home/leon/test | while read -r _; do notify-send "Hi"; done-->
|
||||
<!--</script-var>-->
|
||||
|
||||
<!--<script-var name="foo">-->
|
||||
<!--tail -F /home/leon/test-->
|
||||
<!--</script-var>-->
|
||||
</variables>
|
||||
|
||||
|
||||
<windows>
|
||||
<window screen="0" name="px" stacking="fg" focusable="false">
|
||||
<geometry anchor="center" width="10px" height="100%" x="1px" y="0px"/>
|
||||
<widget>
|
||||
<pxbar/>
|
||||
</widget>
|
||||
</window>
|
||||
<window screen="0" name="mw" stacking="fg" focusable="false" windowtype="dock" wm-ignore="false" sticky="false">
|
||||
<!--<window screen="2" name="mw" stacking="fg" focusable="false">-->
|
||||
<!--<geometry anchor="center" width="20%" height="20%" x="50px" y="50px"/>-->
|
||||
<geometry anchor="top center" width="20%" height="20%" x="0px" y="0px"/>
|
||||
<reserve side="left" distance="30%"/>
|
||||
<widget>
|
||||
<test ree="test" />
|
||||
</widget>
|
||||
</window>
|
||||
<window screen="0" name="rev">
|
||||
<geometry anchor="bottom center" width="0" height="0"/>
|
||||
<widget>
|
||||
|
||||
<revtest/>
|
||||
</widget>
|
||||
</window>
|
||||
<window screen="0" name="mw2" stacking="fg">
|
||||
<geometry anchor="bottom right"/>
|
||||
<widget>
|
||||
<foo/>
|
||||
<!--<test ree="test" />-->
|
||||
</widget>
|
||||
</window>
|
||||
<window screen="0" name="volume_popup">
|
||||
<geometry />
|
||||
<widget>
|
||||
<volume_popup />
|
||||
</widget>
|
||||
</window>
|
||||
<window screen="0" name="music">
|
||||
<widget>
|
||||
<music />
|
||||
</widget>
|
||||
</window>
|
||||
</windows>
|
||||
</eww>
|
87
eggs/eww/.config/eww/example/eww.scss
Normal file
|
@ -0,0 +1,87 @@
|
|||
|
||||
* {
|
||||
all: unset; //Unsets everything so you can style everything from scratch
|
||||
}
|
||||
|
||||
//Global Styles
|
||||
window {
|
||||
background-color: #282828;
|
||||
color: #ffd5cd;
|
||||
font-family: cozette;
|
||||
}
|
||||
|
||||
button {
|
||||
all: unset;
|
||||
background-color: #282828;
|
||||
}
|
||||
|
||||
.bar {
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
|
||||
// Styles on classes (see eww.xml for more information)
|
||||
|
||||
.sidestuff slider {
|
||||
all: unset;
|
||||
color: #ffd5cd;
|
||||
}
|
||||
|
||||
.slider-vol scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #D35D6E;
|
||||
color: #000000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.slider-vol scale trough {
|
||||
all: unset;
|
||||
background-color: #4e4e4e;
|
||||
border-radius: 50px;
|
||||
min-height: 3px;
|
||||
min-width: 50px;
|
||||
margin-left: 10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.slider-ram scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #D35D6E;
|
||||
color: #000000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.slider-ram scale trough {
|
||||
all: unset;
|
||||
background-color: #4e4e4e;
|
||||
border-radius: 50px;
|
||||
min-height: 3px;
|
||||
min-width: 50px;
|
||||
margin-left: 10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.label-ram, .label-vol {
|
||||
font-size: large;
|
||||
}
|
||||
.time {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.workspaces button:hover {
|
||||
color: #D35D6E;
|
||||
}
|
||||
|
||||
.workspaces > * {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.active_wsp {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
.full_wsp {
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
.inactive_wsp {
|
||||
color: #a89984;
|
||||
}
|
125
eggs/eww/.config/eww/example/eww.xml
Normal file
|
@ -0,0 +1,125 @@
|
|||
<!-- The main eww configuration file. This is where your widgets and how they appear on the screen and what they
|
||||
contain are defined. -->
|
||||
|
||||
<eww>
|
||||
<definitions>
|
||||
<!-- This is the place where you structure your widgets, align them and stuff. -->
|
||||
|
||||
<def name="bar"> <!-- Starts the definition of a widget named main -->
|
||||
<box orientation="h" hexpand="true" valign="center">
|
||||
<workspaces wsp_literal="{{wsp_literal}}"/>
|
||||
<music/>
|
||||
<sidestuff/>
|
||||
</box>
|
||||
</def>
|
||||
<def name="sidestuff">
|
||||
<box class="sidestuff" orientation="h" space-evenly="false" halign="end">
|
||||
<slider-vol/>
|
||||
<slider-ram/>
|
||||
<time/>
|
||||
</box>
|
||||
</def>
|
||||
|
||||
<def name="workspaces">
|
||||
<literal content="{{wsp_literal}}"/>
|
||||
</def>
|
||||
<def name="music">
|
||||
<box orientation="h" class="music" halign="center" space-evenly="false">
|
||||
<!-- An image. We won't be using it, but it might be handy if you ever need it. -->
|
||||
<!-- <image path="/home/user/.config/eww/icons/music.svg"/> -->
|
||||
|
||||
{{music}} <!--This is how you use variables.-->
|
||||
</box>
|
||||
</def>
|
||||
<def name="slider-vol">
|
||||
<!--A basic volume slider-->
|
||||
<box orientation="h" class="slider-vol" space-evenly="false">
|
||||
<box class="label-vol"></box>
|
||||
<scale min="0" max="101" value="{{volume}}" onchange="amixer -D pulse sset Master {}%"/>
|
||||
</box>
|
||||
</def>
|
||||
<def name="slider-ram">
|
||||
<!--A basic RAM slider-->
|
||||
<box orientation="h" class="slider-ram" space-evenly="false">
|
||||
<box class="label-ram"></box>
|
||||
<scale min="0" active="false" max="101" value="{{ram-used}}"/>
|
||||
</box>
|
||||
</def>
|
||||
<def name="time">
|
||||
<!--Time-->
|
||||
<box class="time">{{hour}}:{{min}} {{month}} {{number_day}}, {{year_full}}</box>
|
||||
</def>
|
||||
</definitions>
|
||||
|
||||
<variables>
|
||||
|
||||
<!-- Music vars -->
|
||||
<!-- These are your variables. Like they say, they run a script, and then output that to the variable. In
|
||||
the following var, we get music info from playerctl. -->
|
||||
|
||||
<script-var name="music" interval="5s">playerctl metadata --format '{{ artist }} - {{ title }}'</script-var>
|
||||
|
||||
|
||||
<!--Volume var-->
|
||||
<!-- If your vars get too complex to write down here, you can use an external script and paste it's path here as well, as shown below.
|
||||
-->
|
||||
|
||||
<script-var name="volume" interval="16ms">
|
||||
amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%'
|
||||
</script-var>
|
||||
|
||||
<script-var name="workspace_literal_0">
|
||||
~/.config/eww/scripts/workspaces.sh 0
|
||||
</script-var>
|
||||
<script-var name="workspace_literal_1">
|
||||
~/.config/eww/scripts/workspaces.sh 1
|
||||
</script-var>
|
||||
<script-var name="workspace_literal_2">
|
||||
~/.config/eww/scripts/workspaces.sh 2
|
||||
</script-var>
|
||||
|
||||
<!--Date vars-->
|
||||
<script-var name="number_day" interval="5h">date "+%d"</script-var>
|
||||
<script-var name="month" interval="10h">date "+%b"</script-var>
|
||||
<script-var name="min" interval="10s">date "+%M"</script-var>
|
||||
<script-var name="hour" interval="1m">date "+%H"</script-var>
|
||||
<script-var name="year_full" interval="15h">date "+%Y"</script-var>
|
||||
|
||||
<!--RAM var-->
|
||||
<script-var name="ram-used" interval="1s">
|
||||
printf '%.0f\n' $(LANG=en_US free -m | grep Mem | awk '{print ($3/$2)*100}')
|
||||
</script-var>
|
||||
|
||||
<!--Battery charge var-->
|
||||
<script-var name="battery-remaining" interval="2m">
|
||||
<!--cat /sys/class/power_supply/BAT0/capacity-->
|
||||
echo 50
|
||||
</script-var>
|
||||
|
||||
</variables>
|
||||
|
||||
<windows>
|
||||
<!-- These are the windows -->
|
||||
<window screen="0" name="bar">
|
||||
<geometry x="0%" y="0%" width="100%" height="40px"/> <!--Specifies geometry-->
|
||||
<reserve side="top" distance="20px"/>
|
||||
<widget>
|
||||
<bar wsp_literal="{{workspace_literal_1}}"/> <!--This is the def we created earlier-->
|
||||
</widget>
|
||||
</window>
|
||||
<window screen="1" name="bar1">
|
||||
<geometry x="0%" y="0%" width="100%" height="40px"/> <!--Specifies geometry-->
|
||||
<reserve side="top" distance="20px"/>
|
||||
<widget>
|
||||
<bar wsp_literal="{{workspace_literal_0}}"/> <!--This is the def we created earlier-->
|
||||
</widget>
|
||||
</window>
|
||||
<window screen="2" name="bar2">
|
||||
<geometry x="0%" y="0%" width="100%" height="40px"/> <!--Specifies geometry-->
|
||||
<reserve side="top" distance="20px"/>
|
||||
<widget>
|
||||
<bar wsp_literal="{{workspace_literal_2}}"/> <!--This is the def we created earlier-->
|
||||
</widget>
|
||||
</window>
|
||||
</windows>
|
||||
</eww>
|
13
eggs/eww/.config/eww/foo.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<eww>
|
||||
<definitions>
|
||||
<def name="foo">
|
||||
<box>Hey this is a foo</box>
|
||||
</def>
|
||||
</definitions>
|
||||
|
||||
<variables>
|
||||
<var name="shit">
|
||||
shit
|
||||
</var>
|
||||
</variables>
|
||||
</eww>
|
38
eggs/eww/.config/eww/music.sh
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
|
||||
fixArtUrl() {
|
||||
sed -e 's/open.spotify.com/i.scdn.co/g'
|
||||
}
|
||||
|
||||
getData() {
|
||||
eww update song-name "$(playerctl metadata --format "{{ xesam:title }}")"
|
||||
wget -O /tmp/music-file "$(playerctl metadata --format "{{ mpris:artUrl }}"| fixArtUrl)"
|
||||
eww update song-image /tmp/music-file
|
||||
if [ -f /tmp/music-file ]; then
|
||||
eww update song-image-visible true
|
||||
else
|
||||
eww update song-image-visible false
|
||||
fi
|
||||
|
||||
eww update song-album "$(playerctl metadata --format "{{ xesam:album }}")"
|
||||
eww update song-artist "$(playerctl metadata --format "{{ xesam:artist }}")"
|
||||
if [ "spotify" = "$(playerctl metadata | head -n1 | awk '{ print $1 }')" ]; then
|
||||
eww update song-show-progress "false"
|
||||
else
|
||||
eww update song-show-progress "true"
|
||||
fi;
|
||||
|
||||
song_status="$(playerctl status --format "{{ lc(status) }}")"
|
||||
if [ "$song_status" = "playing" ]; then
|
||||
eww update song-playpause
|
||||
else
|
||||
eww update song-playpause
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
getData
|
||||
cat <(playerctl metadata --format '{{ title }}' -F & playerctl status -F) 2>&1 /dev/null
|
12
eggs/eww/.config/eww/popup.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
secs="$1"
|
||||
window_name="$2"
|
||||
|
||||
|
||||
|
||||
#kill -9 "$(cat /tmp/eww-popup.pid)" || \
|
||||
#eww -d open "$window_name"
|
||||
|
||||
#{ sleep "$secs"; eww close "$window_name"; } &
|
||||
#echo $! > /tmp/eww-popup.pid
|
28
eggs/eww/.config/eww/scripts/workspaces.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
monitor="$1"
|
||||
|
||||
gib_workspace_names() {
|
||||
wmctrl -d \
|
||||
| awk '{ print $1 " " $2 " " $9 }' \
|
||||
| grep -v NSP \
|
||||
| grep "${monitor}_"
|
||||
}
|
||||
|
||||
gib_workspace_xml() {
|
||||
gib_workspace_names | while read -r id active name; do
|
||||
name="${name#*_}"
|
||||
if [ "$active" == '*' ]; then
|
||||
button_class="active_wsp"
|
||||
elif wmctrl -l | grep --regexp '.*\s\+'"$id"'\s\+.*' >/dev/null; then
|
||||
button_class="full_wsp"
|
||||
else
|
||||
button_class="inactive_wsp"
|
||||
fi
|
||||
echo -n '<button class="'"$button_class"'" onclick="wmctrl -s '"$id"'">'"$name"'</button>'
|
||||
done
|
||||
}
|
||||
|
||||
xprop -spy -root _NET_CURRENT_DESKTOP | while read -r; do
|
||||
echo '<box orientation="h" class="workspaces" space-evenly="true" halign="start" valign="center" vexpand="true">'"$(gib_workspace_xml)"'</box>'
|
||||
done
|
8
eggs/foot/yolk_templates
Normal file
|
@ -0,0 +1,8 @@
|
|||
.config/foot/foot.ini
|
||||
.config/foot/foot.ini
|
||||
.config/foot/foot.ini
|
||||
.config/foot/foot.ini
|
||||
.config/foot/foot.ini
|
||||
.config/foot/foot.ini
|
||||
.config/foot/foot.ini
|
||||
.config/foot/foot.ini
|
48
eggs/git/.gitconfig
Normal file
|
@ -0,0 +1,48 @@
|
|||
[user]
|
||||
email = dev@elkowar.dev
|
||||
name = elkowar
|
||||
[include]
|
||||
path = ~/.gitconfig.local
|
||||
[credential]
|
||||
helper = store
|
||||
[core]
|
||||
autocrlf = input
|
||||
; {# if command_available("delta") #}
|
||||
#<yolk> pager = delta
|
||||
[pull]
|
||||
rebase = false
|
||||
[github]
|
||||
user = ElKowar
|
||||
|
||||
;[diff]
|
||||
;external = "difft"
|
||||
|
||||
|
||||
[delta]
|
||||
syntax-theme = gruvbox
|
||||
features = side-by-side line-numbers decorations navigate
|
||||
|
||||
[delta "line-numbers"]
|
||||
line-numbers-left-style = cyan
|
||||
|
||||
[init]
|
||||
defaultBranch = master
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
[commit]
|
||||
gpgsign = true
|
||||
[alias]
|
||||
c = commit --verbose
|
||||
s = status -s
|
||||
d = diff
|
||||
ds = diff --stat
|
||||
dc = diff --cached
|
||||
dn = diff --numstat
|
||||
ss = status
|
||||
a = add
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
default = current
|
2
eggs/git/yolk_templates
Normal file
|
@ -0,0 +1,2 @@
|
|||
.gitconfig
|
||||
.gitconfig
|
15
eggs/gtk/.config/gtk-3.0/settings.ini
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Settings]
|
||||
gtk-theme-name=gruvbox-phocus
|
||||
gtk-icon-theme-name=oomox-materia-dark
|
||||
gtk-font-name=xos4 Terminus
|
||||
gtk-menu-images=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-application-prefer-dark-theme=1
|
||||
gtk-decoration-layout=":"
|
||||
gtk-toolbar-style=GTK_TOOLBAR_ICONS
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-button-images=1
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-cursor-theme-name=phinger-cursors-light
|
161
eggs/hyprland/.config/hypr/hyprland.conf
Normal file
|
@ -0,0 +1,161 @@
|
|||
monitor=,preferred,auto,1
|
||||
|
||||
exec-once = swaybg -m fill --image /home/leon/Pictures/green_leaves.jpg & mako
|
||||
env = $WOBSOCK,$XDG_RUNTIME_DIR/wob.sock
|
||||
exec-once = mkfifo $WOBSOCK && tail -f $WOBSOCK | wob
|
||||
exec-once = eww open bar
|
||||
|
||||
|
||||
# Source a file (multi-file configs)
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options = compose:ralt
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = yes
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
general {
|
||||
gaps_in = 5
|
||||
gaps_out = 10
|
||||
border_size = 1
|
||||
col.active_border = rgba(8ec07cff)
|
||||
col.inactive_border = rgba(595959aa)
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 0
|
||||
blur = no
|
||||
blur_size = 3
|
||||
blur_passes = 1
|
||||
blur_new_optimizations = on
|
||||
|
||||
drop_shadow = yes
|
||||
shadow_range = 4
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
|
||||
animation = windows, 1, 2, myBezier
|
||||
animation = windowsOut, 1, 2, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 2, default
|
||||
animation = workspaces, 1, 2, default
|
||||
}
|
||||
|
||||
dwindle {
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
}
|
||||
|
||||
master {
|
||||
new_is_master = true
|
||||
}
|
||||
|
||||
gestures {
|
||||
workspace_swipe = on
|
||||
workspace_swipe_create_new = on
|
||||
}
|
||||
|
||||
device:epic mouse V1 {
|
||||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
|
||||
|
||||
bind = SUPER SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy
|
||||
bind = SUPER, Return, exec, foot
|
||||
bind = SUPER SHIFT, B, exec, google-chrome-stable --enable-features=TouchpadOverscrollHistoryNavigation
|
||||
bind = SUPER, Q, killactive,
|
||||
bind = SUPER, M, exit,
|
||||
bind = SUPER, g, togglefloating,
|
||||
bind = SUPER SHIFT, P, exec, rofi -show drun
|
||||
bind = SUPER, P, pseudo, # dwindle
|
||||
bind = SUPER, v, togglesplit, # dwindle
|
||||
bind = SUPER, f, fullscreen, 1 # dwindle
|
||||
bind = SUPER SHIFT, f, fullscreen, 0 # dwindle
|
||||
|
||||
bind = ,XF86AudioRaiseVolume, exec, pamixer -ui 2 && pamixer --get-volume > $WOBSOCK
|
||||
bind = ,XF86AudioLowerVolume, exec, pamixer -ud 2 && pamixer --get-volume > $WOBSOCK
|
||||
bind = ,XF86AudioMute, exec, pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
|
||||
bind = ,XF86MonBrightnessDown, exec, brightnessctl set 5%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' | tee /tmp/brightness > $WOBSOCK
|
||||
bind = ,XF86MonBrightnessUp, exec, brightnessctl set +5% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' | tee /tmp/brightness > $WOBSOCK
|
||||
|
||||
bind = SUPER, t, togglegroup
|
||||
bind = SUPER, tab, changegroupactive, f
|
||||
bind = SUPER SHIFT, tab, changegroupactive, b
|
||||
|
||||
bind = SUPER CONTROL SHIFT, h, moveintogroup, l
|
||||
bind = SUPER CONTROL SHIFT, l, moveintogroup, r
|
||||
bind = SUPER CONTROL SHIFT, k, moveintogroup, u
|
||||
bind = SUPER CONTROL SHIFT, j, moveintogroup, d
|
||||
bind = SUPER CONTROL SHIFT, n, moveoutofgroup
|
||||
|
||||
|
||||
bind = SUPER, h, movefocus, l
|
||||
bind = SUPER, l, movefocus, r
|
||||
bind = SUPER, k, movefocus, u
|
||||
bind = SUPER, j, movefocus, d
|
||||
|
||||
bind = SUPER SHIFT, h, movewindow, l
|
||||
bind = SUPER SHIFT, l, movewindow, r
|
||||
bind = SUPER SHIFT, k, movewindow, u
|
||||
bind = SUPER SHIFT, j, movewindow, d
|
||||
|
||||
|
||||
bind = SUPER CONTROL, h, resizeactive, -50 0
|
||||
bind = SUPER CONTROL, l, resizeactive, 50 0
|
||||
bind = SUPER CONTROL, k, resizeactive, 0 -50
|
||||
bind = SUPER CONTROL, j, resizeactive, 0 50
|
||||
|
||||
# SwitcSUPERaces with mainMod + [0-9]
|
||||
bind = SUPER, 1, workspace, 1
|
||||
bind = SUPER, 2, workspace, 2
|
||||
bind = SUPER, 3, workspace, 3
|
||||
bind = SUPER, 4, workspace, 4
|
||||
bind = SUPER, 5, workspace, 5
|
||||
bind = SUPER, 6, workspace, 6
|
||||
bind = SUPER, 7, workspace, 7
|
||||
bind = SUPER, 8, workspace, 8
|
||||
bind = SUPER, 9, workspace, 9
|
||||
bind = SUPER, 0, workspace, 10
|
||||
|
||||
# Move SUPERindow to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = SUPER SHIFT, 1, movetoworkspace, 1
|
||||
bind = SUPER SHIFT, 2, movetoworkspace, 2
|
||||
bind = SUPER SHIFT, 3, movetoworkspace, 3
|
||||
bind = SUPER SHIFT, 4, movetoworkspace, 4
|
||||
bind = SUPER SHIFT, 5, movetoworkspace, 5
|
||||
bind = SUPER SHIFT, 6, movetoworkspace, 6
|
||||
bind = SUPER SHIFT, 7, movetoworkspace, 7
|
||||
bind = SUPER SHIFT, 8, movetoworkspace, 8
|
||||
bind = SUPER SHIFT, 9, movetoworkspace, 9
|
||||
bind = SUPER SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# ScrolSUPERh existing workspaces with mainMod + scroll
|
||||
bind = SUPER, mouse_down, workspace, e+1
|
||||
bind = SUPER, mouse_up, workspace, e-1
|
||||
|
||||
# Move/SUPERindows with mainMod + LMB/RMB and dragging
|
||||
bindm = SUPER, mouse:272, movewindow
|
||||
bindm = SUPER, mouse:273, resizewindow
|
2
eggs/hyprland/.config/hypr/hyprpaper.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
preload = /home/leon/Pictures/green_leaves.jpg
|
||||
wallpaper = monitor,/home/leon/Pictures/green_leaves.jpg
|
157
eggs/kakoune/.config/kak-lsp/kak-lsp.toml
Normal file
|
@ -0,0 +1,157 @@
|
|||
verbosity = 3
|
||||
[semantic_scopes]
|
||||
# Map textmate scopes to kakoune faces for semantic highlighting
|
||||
# the underscores are translated to dots, and indicate nesting.
|
||||
# That is, if variable_other_field is omitted, it will try the face for
|
||||
# variable_other and then variable
|
||||
#
|
||||
# To see a list of available scopes in the debug buffer, run lsp-semantic-available-scopes
|
||||
variable="variable"
|
||||
entity_name_function="function"
|
||||
entity_name_type="type"
|
||||
variable_other_enummember="variable"
|
||||
entity_name_namespace="module"
|
||||
|
||||
[server]
|
||||
# exit session if no requests were received during given period in seconds
|
||||
# works only in unix sockets mode (-s/--session)
|
||||
# set to 0 to disable
|
||||
timeout = 1800 # seconds = 30 minutes
|
||||
|
||||
[language.nix]
|
||||
filetypes = ["nix"]
|
||||
roots = [".git"]
|
||||
command = "/home/leon/coding/projects/rnix-lsp/target/debug/rnix-lsp"
|
||||
args = []
|
||||
|
||||
[language.tsx]
|
||||
filetypes = ["typescript", "typescript-tsx"]
|
||||
roots = ["package.json", "tsconfig.json"]
|
||||
command = "npx"
|
||||
args = ["typescript-language-server", "--stdio"]
|
||||
|
||||
[language.rust]
|
||||
filetypes = ["rust"]
|
||||
roots = ["Cargo.toml"]
|
||||
command = "rust-analyzer"
|
||||
|
||||
[language.crystal]
|
||||
filetypes = ["crystal"]
|
||||
roots = ["shard.yml"]
|
||||
command = "scry"
|
||||
|
||||
[language.javascript]
|
||||
filetypes = ["javascript"]
|
||||
roots = [".flowconfig"]
|
||||
command = "flow"
|
||||
args = ["lsp"]
|
||||
|
||||
[language.json]
|
||||
filetypes = ["json"]
|
||||
roots = ["package.json"]
|
||||
command = "json-languageserver"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language.css]
|
||||
filetypes = ["css"]
|
||||
roots = ["package.json"]
|
||||
command = "css-languageserver"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language.html]
|
||||
filetypes = ["html"]
|
||||
roots = ["package.json"]
|
||||
command = "html-languageserver"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language.ocaml]
|
||||
filetypes = ["ocaml"]
|
||||
roots = ["Makefile", "opam", "*.opam", "dune"]
|
||||
command = "ocaml-language-server"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language.reason]
|
||||
filetypes = ["reason"]
|
||||
roots = ["package.json", "Makefile", ".git", ".hg"]
|
||||
command = "ocaml-language-server"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language.ruby]
|
||||
filetypes = ["ruby"]
|
||||
roots = ["Gemfile"]
|
||||
command = "solargraph"
|
||||
args = ["stdio"]
|
||||
|
||||
[language.python]
|
||||
filetypes = ["python"]
|
||||
roots = ["requirements.txt", "setup.py", ".git", ".hg"]
|
||||
command = "pyls"
|
||||
offset_encoding = "utf-8"
|
||||
|
||||
[language.c_cpp]
|
||||
filetypes = ["c", "cpp"]
|
||||
roots = ["compile_commands.json", ".clangd"]
|
||||
command = "clangd"
|
||||
snippet_support = true
|
||||
verbosity = 2
|
||||
|
||||
[language.haskell]
|
||||
filetypes = ["haskell"]
|
||||
roots = ["Setup.hs", "stack.yaml", "*.cabal"]
|
||||
command = "hie"
|
||||
args = ["--lsp"]
|
||||
|
||||
[language.go]
|
||||
filetypes = ["go"]
|
||||
roots = ["Gopkg.toml", "go.mod", ".git", ".hg"]
|
||||
command = "gopls"
|
||||
offset_encoding = "utf-8"
|
||||
|
||||
[language.bash]
|
||||
filetypes = ["sh"]
|
||||
roots = [".git", ".hg"]
|
||||
command = "bash-language-server"
|
||||
args = ["start"]
|
||||
|
||||
[language.dart]
|
||||
# start shell to find path to dart analysis server source
|
||||
filetypes = ["dart"]
|
||||
roots = ["pubspec.yaml", ".git"]
|
||||
command = "sh"
|
||||
args = ["-c", "dart $(dirname $(which dart))/snapshots/analysis_server.dart.snapshot --lsp"]
|
||||
|
||||
[language.d]
|
||||
filetypes = ["d", "di"]
|
||||
roots = [".git", "dub.sdl", "dub.json"]
|
||||
command = "dls"
|
||||
|
||||
[language.php]
|
||||
filetypes = ["php"]
|
||||
roots = [".htaccess", "composer.json"]
|
||||
command = "intelephense"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language.php.initialization_options]
|
||||
storagePath = "/tmp/intelephense"
|
||||
|
||||
[language.nim]
|
||||
filetypes = ["nim"]
|
||||
roots = ["*.nimble", ".git"]
|
||||
command = "nimlsp"
|
||||
|
||||
[language.elm]
|
||||
filetypes = ["elm"]
|
||||
roots = ["elm.json"]
|
||||
command = "elm-language-server"
|
||||
args = ["--stdio"]
|
||||
|
||||
[language.elm.initialization_options]
|
||||
runtime = "node"
|
||||
elmPath = "elm"
|
||||
elmFormatPath = "elm-format"
|
||||
elmTestPath = "elm-test"
|
||||
|
||||
[language.latex]
|
||||
filetypes = ["latex"]
|
||||
roots = [".git"]
|
||||
command = "texlab"
|
1
eggs/kakoune/.config/kak/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
plugins
|
99
eggs/kakoune/.config/kak/kakrc
Normal file
|
@ -0,0 +1,99 @@
|
|||
source "%val{config}/plugins/plug.kak/rc/plug.kak"
|
||||
|
||||
plug "h-youhei/kakoune-surround"
|
||||
|
||||
plug "andreyorst/fzf.kak" config %{
|
||||
map global user -docstring 'fzf' f ': fzf-mode<ret>'
|
||||
} defer fzf %{
|
||||
set-option global fzf_grep_command rg
|
||||
set-option global fzf_file_command rg
|
||||
}
|
||||
|
||||
plug "ul/kak-lsp" do %{
|
||||
cargo install --locked --force --path .
|
||||
} config %{
|
||||
hook global WinSetOption filetype=(rust|python|go|javascript|typescript|c|cpp) %{
|
||||
lsp-enable-window
|
||||
# lsp-auto-hover-enable
|
||||
lsp-auto-hover-insert-mode-disable
|
||||
set-option window lsp_hover_anchor true
|
||||
set-face window DiagnosticError default+u
|
||||
set-face window DiagnosticWarning default+u
|
||||
set global lsp_hover_anchor true
|
||||
}
|
||||
hook global WinSetOption filetype=rust %{
|
||||
# hook window -group rust-inlay-hints BufReload .* rust-analyzer-inlay-hints
|
||||
# hook window -group rust-inlay-hints NormalIdle .* rust-analyzer-inlay-hints
|
||||
# hook window -group rust-inlay-hints InsertIdle .* rust-analyzer-inlay-hints
|
||||
|
||||
# hook -once -always window WinSetOption filetype=.* %{
|
||||
# remove-hooks window rust-inlay-hints
|
||||
# }
|
||||
#
|
||||
hook window -group semantic-tokens BufReload .* lsp-semantic-tokens
|
||||
hook window -group semantic-tokens NormalIdle .* lsp-semantic-tokens
|
||||
hook window -group semantic-tokens InsertIdle .* lsp-semantic-tokens
|
||||
hook -once -always window WinSetOption filetype=.* %{
|
||||
remove-hooks window semantic-tokens
|
||||
}
|
||||
|
||||
lsp-inlay-diagnostics-enable global
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
plug 'delapouite/kakoune-buffers' %{
|
||||
map global normal ^ q
|
||||
map global normal <a-^> Q
|
||||
map global normal q b
|
||||
map global normal Q B
|
||||
map global normal <a-q> <a-b>
|
||||
map global normal <a-Q> <a-B>
|
||||
map global user b ': enter-buffers-mode<ret>' -docstring 'buffers'
|
||||
map global normal B ': enter-user-mode -lock buffers<ret>' -docstring 'buffers (lock)'
|
||||
}
|
||||
|
||||
|
||||
map global user m ':enter-user-mode lsp<ret>' -docstring 'code stuff'
|
||||
map global lsp g ':lsp-definition<ret>' -docstring 'go to definition'
|
||||
map global lsp d ':lsp-hover<ret>' -docstring 'lsp hover'
|
||||
map global lsp n ':lsp-rename-prompt<ret>' -docstring 'rename symbol'
|
||||
map global lsp m ':lsp-find-error --next<ret>' -docstring 'next error'
|
||||
|
||||
map global normal , '<space>'
|
||||
map global normal <space> ':enter-user-mode user<ret>'
|
||||
|
||||
map global insert <tab> '<a-;><a-gt>'
|
||||
map global insert <s-tab> '<a-;><a-lt>'
|
||||
map global insert <c-w> '<esc>bc'
|
||||
|
||||
declare-user-mode surround
|
||||
map global surround s ':surround<ret>' -docstring 'surround'
|
||||
map global surround c ':change-surround<ret>' -docstring 'change'
|
||||
map global surround d ':delete-surround<ret>' -docstring 'delete'
|
||||
map global surround t ':select-surrounding-tag<ret>' -docstring 'select tag'
|
||||
map global user s ':enter-user-mode surround<ret>' -docstring 'surround mode'
|
||||
|
||||
# map global user b ':buffer ' -docstring 'switch buffer'
|
||||
map global normal <c-p> ':fzf-mode<ret>'
|
||||
|
||||
declare-user-mode commenting
|
||||
map global user c ':enter-user-mode commenting<ret>' -docstring 'comment'
|
||||
map global commenting <space> ':comment-line<ret>' -docstring 'comment block'
|
||||
|
||||
|
||||
|
||||
map global user y '<a-|>xsel -i -b<ret>' -docstring 'yank to system clipboard'
|
||||
map global user P '!xsel --output --clipboard<ret>' -docstring 'paste before from system clipboard'
|
||||
map global user p '<a-!>xsel --output --clipboard<ret>' -docstring 'paste after from system clipboard'
|
||||
|
||||
colorscheme gruvbox
|
||||
|
||||
add-highlighter global/ show-matching
|
||||
|
||||
|
||||
# fancy rust :; shit
|
||||
hook global InsertChar ";" %{ try %{
|
||||
exec -draft hH "<a-k>:;<ret>" d
|
||||
exec "::"
|
||||
}}
|
102
eggs/kanata/.config/kanata/kanata.kbd
Normal file
|
@ -0,0 +1,102 @@
|
|||
;; (deflayer name
|
||||
;; _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
;; _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
;; _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
;; _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
;; _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
;; _ _ _ _ _ _ _ _ _ _ _
|
||||
;; )
|
||||
|
||||
|
||||
|
||||
(defcfg
|
||||
linux-dev /dev/input/by-path/platform-i8042-serio-0-event-kbd
|
||||
fallthrough true
|
||||
)
|
||||
|
||||
(defsrc
|
||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ssrq slck pause
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc ins home pgup
|
||||
tab q w e r t y u i o p [ ] ret del end pgdn
|
||||
caps a s d f g h j k l scln ' \
|
||||
lsft 102d z x c v b n m , . / rsft up
|
||||
lctl lmet lalt spc ralt rctl left down rght
|
||||
)
|
||||
|
||||
(deflayer base
|
||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ssrq slck pause
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc ins home pgup
|
||||
@tab q w e r t @cy @cu @ci @co @cp [ + ret del end pgdn
|
||||
@cps @ca @cs @cd @cf g @ch @cj k @cl scln ' \
|
||||
lsft 102d z x c v b n m , . / rsft up
|
||||
lctl lmet lalt spc ralt ralt left down rght
|
||||
)
|
||||
|
||||
(defalias
|
||||
ca (chord chords a)
|
||||
cs (chord chords s)
|
||||
cd (chord chords d)
|
||||
cf (chord chords f)
|
||||
cy (chord chords y)
|
||||
cu (chord chords u)
|
||||
co (chord chords o)
|
||||
cp (chord chords p)
|
||||
ch (chord chords h)
|
||||
ci (chord chords i)
|
||||
cj (chord chords j)
|
||||
cl (chord chords l)
|
||||
)
|
||||
|
||||
(defchords chords 100
|
||||
(a) a
|
||||
(s) s
|
||||
(d) d
|
||||
(f) f
|
||||
(h) h
|
||||
(i) i
|
||||
(j) j
|
||||
(l) l
|
||||
(y) y
|
||||
(u) u
|
||||
(o) o
|
||||
(p) p
|
||||
(y p) (macro = S-.)
|
||||
(u i o) @uml-u
|
||||
(i o p) @uml-o
|
||||
(a s d) @uml-a
|
||||
(s d f) @uml-s
|
||||
(h j) (macro S-scln S-scln)
|
||||
(j i) (macro - S-.)
|
||||
(j l) C-bspc)
|
||||
|
||||
(defalias
|
||||
cps (tap-hold-release 200 200 esc (layer-toggle symbols))
|
||||
tab (tap-hold-release 200 200 tab (layer-toggle umls))
|
||||
s-sft (tap-hold-release 150 150 s lsft)
|
||||
l-sft (tap-hold-release 150 150 l lsft)
|
||||
|
||||
uml-a (macro ralt S-apos a)
|
||||
uml-o (macro ralt S-apos o)
|
||||
uml-u (macro ralt S-apos u)
|
||||
uml-s (macro ralt s s)
|
||||
)
|
||||
|
||||
|
||||
|
||||
(deflayer symbols
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ S-1 S-apos / \ _ S-[ [ ] S-] _ S-8 _ _ _ _
|
||||
_ home S-4 S-9 S-0 end left down up rght S-7 S-5 _
|
||||
_ _ S-\ del S-/ S-` _ = S-3 bspc _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _
|
||||
)
|
||||
|
||||
(deflayer umls
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ lrld _ _ @uml-u _ @uml-o _ _ _ _ _ _ _
|
||||
_ @uml-a @uml-s _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _
|
||||
)
|
|
@ -0,0 +1,396 @@
|
|||
{
|
||||
"title": "Vimode with smart caps",
|
||||
"maintainers": [
|
||||
"Lance1o7"
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"description": "CAPSLOCK + hjkl to arrow keys (Post ESCAPE if press CAPSLOCK alone)",
|
||||
"manipulators": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "j",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "down_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "up_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "l",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "right_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "caps_lock",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "caps_lock pressed",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_after_key_up": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "caps_lock pressed",
|
||||
"value": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_if_alone": [
|
||||
{
|
||||
"key_code": "escape"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Post CAPSLOCK if press ESCAPE alone",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "escape",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "escape pressed",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_after_key_up": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "escape pressed",
|
||||
"value": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_if_alone": [
|
||||
{
|
||||
"key_code": "caps_lock"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Change left_shift + Command_L to escape only if pressed at the same time.",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "left_command",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"left_shift"
|
||||
],
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "escape"
|
||||
}
|
||||
],
|
||||
"to_if_alone": [
|
||||
{
|
||||
"key_code": "left_command"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Post COMMAND + A/C/V/X/Z to, when CAPSLOCK + A/C/V/X/Z is pressed",
|
||||
"manipulators": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "a",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "a",
|
||||
"modifiers": [
|
||||
"left_command"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "c",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "c",
|
||||
"modifiers": [
|
||||
"left_command"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "v",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "v",
|
||||
"modifiers": [
|
||||
"left_command"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "w",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "w",
|
||||
"modifiers": [
|
||||
"left_command"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "x",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "x",
|
||||
"modifiers": [
|
||||
"left_command"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "z",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "z",
|
||||
"modifiers": [
|
||||
"left_command"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "caps_lock",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "caps_lock pressed",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_after_key_up": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "caps_lock pressed",
|
||||
"value": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_if_alone": [
|
||||
{
|
||||
"key_code": "escape"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,183 @@
|
|||
{
|
||||
"global": {
|
||||
"check_for_updates_on_startup": true,
|
||||
"show_in_menu_bar": true,
|
||||
"show_profile_name_in_menu_bar": false,
|
||||
"unsafe_ui": false
|
||||
},
|
||||
"profiles": [
|
||||
{
|
||||
"complex_modifications": {
|
||||
"parameters": {
|
||||
"basic.simultaneous_threshold_milliseconds": 50,
|
||||
"basic.to_delayed_action_delay_milliseconds": 500,
|
||||
"basic.to_if_alone_timeout_milliseconds": 1000,
|
||||
"basic.to_if_held_down_threshold_milliseconds": 500,
|
||||
"mouse_motion_to_scroll.speed": 100
|
||||
},
|
||||
"rules": [
|
||||
{
|
||||
"manipulators": [
|
||||
{
|
||||
"description": "Change caps_lock to command+control+option+shift.",
|
||||
"from": {
|
||||
"key_code": "caps_lock",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_shift",
|
||||
"modifiers": [
|
||||
"left_command",
|
||||
"left_control",
|
||||
"left_option"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"devices": [],
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f1"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f2"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_increment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f3"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "mission_control"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f4"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "spotlight"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f5"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "dictation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f6"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "f6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f7"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "rewind"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f8"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "play_or_pause"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f9"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "fast_forward"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f10"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "mute"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f11"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f12"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_increment"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "Default profile",
|
||||
"parameters": {
|
||||
"delay_milliseconds_before_open_device": 1000
|
||||
},
|
||||
"selected": true,
|
||||
"simple_modifications": [],
|
||||
"virtual_hid_keyboard": {
|
||||
"country_code": 0,
|
||||
"indicate_sticky_modifier_keys_state": true,
|
||||
"mouse_key_xy_scale": 100
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,199 @@
|
|||
{
|
||||
"global": {
|
||||
"check_for_updates_on_startup": true,
|
||||
"show_in_menu_bar": true,
|
||||
"show_profile_name_in_menu_bar": false,
|
||||
"unsafe_ui": false
|
||||
},
|
||||
"profiles": [
|
||||
{
|
||||
"complex_modifications": {
|
||||
"parameters": {
|
||||
"basic.simultaneous_threshold_milliseconds": 50,
|
||||
"basic.to_delayed_action_delay_milliseconds": 500,
|
||||
"basic.to_if_alone_timeout_milliseconds": 1000,
|
||||
"basic.to_if_held_down_threshold_milliseconds": 500,
|
||||
"mouse_motion_to_scroll.speed": 100
|
||||
},
|
||||
"rules": []
|
||||
},
|
||||
"devices": [
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 832,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": false,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 832,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": false,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 34304,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
}
|
||||
],
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f1"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f2"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_increment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f3"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "mission_control"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f4"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "spotlight"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f5"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "dictation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f6"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "f6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f7"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "rewind"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f8"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "play_or_pause"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f9"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "fast_forward"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f10"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "mute"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f11"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f12"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_increment"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "Default profile",
|
||||
"parameters": {
|
||||
"delay_milliseconds_before_open_device": 1000
|
||||
},
|
||||
"selected": true,
|
||||
"simple_modifications": [],
|
||||
"virtual_hid_keyboard": {
|
||||
"country_code": 0,
|
||||
"indicate_sticky_modifier_keys_state": true,
|
||||
"mouse_key_xy_scale": 100
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,696 @@
|
|||
{
|
||||
"global": {
|
||||
"ask_for_confirmation_before_quitting": true,
|
||||
"check_for_updates_on_startup": true,
|
||||
"show_in_menu_bar": true,
|
||||
"show_profile_name_in_menu_bar": false,
|
||||
"unsafe_ui": false
|
||||
},
|
||||
"profiles": [
|
||||
{
|
||||
"complex_modifications": {
|
||||
"parameters": {
|
||||
"basic.simultaneous_threshold_milliseconds": 50,
|
||||
"basic.to_delayed_action_delay_milliseconds": 500,
|
||||
"basic.to_if_alone_timeout_milliseconds": 1000,
|
||||
"basic.to_if_held_down_threshold_milliseconds": 500,
|
||||
"mouse_motion_to_scroll.speed": 100
|
||||
},
|
||||
"rules": [
|
||||
{
|
||||
"description": "CAPSLOCK + hjkl to arrow keys (Post ESCAPE if press CAPSLOCK alone)",
|
||||
"manipulators": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "j",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "down_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "up_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "l",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "right_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "a",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "home"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "g",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "end"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "d",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"modifiers": [
|
||||
"shift"
|
||||
],
|
||||
"key_code": "9"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "f",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"modifiers": [
|
||||
"shift"
|
||||
],
|
||||
"key_code": "0"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "u",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"modifiers": [
|
||||
"shift"
|
||||
],
|
||||
"key_code": "open_bracket"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "p",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"modifiers": [
|
||||
"shift"
|
||||
],
|
||||
"key_code": "close_bracket"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "i",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "open_bracket"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "o",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "close_bracket"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "caps_lock",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "caps_lock pressed",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_after_key_up": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "caps_lock pressed",
|
||||
"value": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_if_alone": [
|
||||
{
|
||||
"key_code": "escape"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "x",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "delete_forward"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "n",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "delete_or_backspace"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "r",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "slash"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "t",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "backslash"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "e",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"modifiers": [
|
||||
"shift"
|
||||
],
|
||||
"key_code": "quote"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "semicolon",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"modifiers": [
|
||||
"shift"
|
||||
],
|
||||
"key_code": "7"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "quote",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"modifiers": [
|
||||
"shift"
|
||||
],
|
||||
"key_code": "5"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"devices": [
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 832,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": false,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 832,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": false,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 34304,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
}
|
||||
],
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f1"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f2"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_increment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f3"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "mission_control"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f4"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "spotlight"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f5"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "dictation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f6"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "f6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f7"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "rewind"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f8"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "play_or_pause"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f9"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "fast_forward"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f10"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "mute"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f11"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f12"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_increment"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "Default profile",
|
||||
"parameters": {
|
||||
"delay_milliseconds_before_open_device": 1000
|
||||
},
|
||||
"selected": true,
|
||||
"simple_modifications": [],
|
||||
"virtual_hid_keyboard": {
|
||||
"country_code": 0
|
||||
},
|
||||
"indicate_sticky_modifier_keys_state": true,
|
||||
"mouse_key_xy_scale": 100
|
||||
}
|
||||
]
|
||||
}
|
249
eggs/karabiner/.config/karabiner/config.yaml
Normal file
|
@ -0,0 +1,249 @@
|
|||
global:
|
||||
ask_for_confirmation_before_quitting: true
|
||||
check_for_updates_on_startup: true
|
||||
show_in_menu_bar: true
|
||||
show_profile_name_in_menu_bar: false
|
||||
unsafe_ui: false
|
||||
profiles:
|
||||
- complex_modifications:
|
||||
parameters:
|
||||
basic.simultaneous_threshold_milliseconds: 50
|
||||
basic.to_delayed_action_delay_milliseconds: 500
|
||||
basic.to_if_alone_timeout_milliseconds: 1000
|
||||
basic.to_if_held_down_threshold_milliseconds: 500
|
||||
mouse_motion_to_scroll.speed: 100
|
||||
rules:
|
||||
- description: CAPSLOCK + hjkl to arrow keys (Post ESCAPE if press CAPSLOCK alone)
|
||||
manipulators:
|
||||
- conditions: &conds
|
||||
- name: caps_lock pressed
|
||||
type: variable_if
|
||||
value: 1
|
||||
from:
|
||||
key_code: j
|
||||
modifiers: { optional: [any] }
|
||||
to: [{ key_code: down_arrow } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: k
|
||||
modifiers: { optional: [any] }
|
||||
to: [{key_code: up_arrow}]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: h
|
||||
modifiers: { optional: [any] }
|
||||
to: [{ key_code: left_arrow }]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: l
|
||||
modifiers: { optional: [any] }
|
||||
to: [{key_code: right_arrow } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: a
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: home } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: g
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: end } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: d
|
||||
modifiers: { optional: [any] }
|
||||
to:
|
||||
- modifiers: [shift ]
|
||||
key_code: '9'
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: f
|
||||
modifiers: { optional: [any] }
|
||||
to:
|
||||
- modifiers: [shift]
|
||||
key_code: '0'
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: u
|
||||
modifiers: { optional: [any] }
|
||||
to:
|
||||
- modifiers: [ shift ]
|
||||
key_code: open_bracket
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: p
|
||||
modifiers: { optional: [any] }
|
||||
to:
|
||||
- modifiers: [ shift ]
|
||||
key_code: close_bracket
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: i
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: open_bracket } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: o
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: close_bracket } ]
|
||||
type: basic
|
||||
- from:
|
||||
key_code: caps_lock
|
||||
modifiers: { optional: [any] }
|
||||
to:
|
||||
- set_variable:
|
||||
name: caps_lock pressed
|
||||
value: 1
|
||||
to_after_key_up:
|
||||
- set_variable:
|
||||
name: caps_lock pressed
|
||||
value: 0
|
||||
to_if_alone:
|
||||
- key_code: escape
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: 'x'
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: delete_forward } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: 'n'
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: delete_or_backspace } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: 'e'
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: quote, modifiers: ["shift"] } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: 'r'
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: slash } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: 't'
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { key_code: backslash } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: 'semicolon'
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { modifiers: [shift], key_code: '7' } ]
|
||||
type: basic
|
||||
- conditions: *conds
|
||||
from:
|
||||
key_code: 'quote'
|
||||
modifiers: { optional: [any] }
|
||||
to: [ { modifiers: [shift], key_code: '5' } ]
|
||||
type: basic
|
||||
devices:
|
||||
- disable_built_in_keyboard_if_exists: false
|
||||
fn_function_keys: []
|
||||
identifiers:
|
||||
is_keyboard: true
|
||||
is_pointing_device: false
|
||||
product_id: 832
|
||||
vendor_id: 1452
|
||||
ignore: false
|
||||
manipulate_caps_lock_led: true
|
||||
simple_modifications: []
|
||||
treat_as_built_in_keyboard: false
|
||||
- disable_built_in_keyboard_if_exists: false
|
||||
fn_function_keys: []
|
||||
identifiers:
|
||||
is_keyboard: false
|
||||
is_pointing_device: true
|
||||
product_id: 832
|
||||
vendor_id: 1452
|
||||
ignore: true
|
||||
manipulate_caps_lock_led: false
|
||||
simple_modifications: []
|
||||
treat_as_built_in_keyboard: false
|
||||
- disable_built_in_keyboard_if_exists: false
|
||||
fn_function_keys: []
|
||||
identifiers:
|
||||
is_keyboard: true
|
||||
is_pointing_device: false
|
||||
product_id: 34304
|
||||
vendor_id: 1452
|
||||
ignore: false
|
||||
manipulate_caps_lock_led: true
|
||||
simple_modifications: []
|
||||
treat_as_built_in_keyboard: false
|
||||
fn_function_keys:
|
||||
- from:
|
||||
key_code: f1
|
||||
to:
|
||||
- consumer_key_code: display_brightness_decrement
|
||||
- from:
|
||||
key_code: f2
|
||||
to:
|
||||
- consumer_key_code: display_brightness_increment
|
||||
- from:
|
||||
key_code: f3
|
||||
to:
|
||||
- apple_vendor_keyboard_key_code: mission_control
|
||||
- from:
|
||||
key_code: f4
|
||||
to:
|
||||
- apple_vendor_keyboard_key_code: spotlight
|
||||
- from:
|
||||
key_code: f5
|
||||
to:
|
||||
- consumer_key_code: dictation
|
||||
- from:
|
||||
key_code: f6
|
||||
to:
|
||||
- key_code: f6
|
||||
- from:
|
||||
key_code: f7
|
||||
to:
|
||||
- consumer_key_code: rewind
|
||||
- from:
|
||||
key_code: f8
|
||||
to:
|
||||
- consumer_key_code: play_or_pause
|
||||
- from:
|
||||
key_code: f9
|
||||
to:
|
||||
- consumer_key_code: fast_forward
|
||||
- from:
|
||||
key_code: f10
|
||||
to:
|
||||
- consumer_key_code: mute
|
||||
- from:
|
||||
key_code: f11
|
||||
to:
|
||||
- consumer_key_code: volume_decrement
|
||||
- from:
|
||||
key_code: f12
|
||||
to:
|
||||
- consumer_key_code: volume_increment
|
||||
name: Default profile
|
||||
parameters:
|
||||
delay_milliseconds_before_open_device: 1000
|
||||
selected: true
|
||||
simple_modifications: []
|
||||
virtual_hid_keyboard:
|
||||
country_code: 0
|
||||
indicate_sticky_modifier_keys_state: true
|
||||
mouse_key_xy_scale: 100
|
||||
|
1057
eggs/karabiner/.config/karabiner/karabiner.json
Normal file
740
eggs/karabiner/.config/karabiner/karabiner.json.old
Normal file
|
@ -0,0 +1,740 @@
|
|||
{
|
||||
"global": {
|
||||
"ask_for_confirmation_before_quitting": true,
|
||||
"check_for_updates_on_startup": true,
|
||||
"show_in_menu_bar": true,
|
||||
"show_profile_name_in_menu_bar": false,
|
||||
"unsafe_ui": false
|
||||
},
|
||||
"profiles": [
|
||||
{
|
||||
"complex_modifications": {
|
||||
"parameters": {
|
||||
"basic.simultaneous_threshold_milliseconds": 50,
|
||||
"basic.to_delayed_action_delay_milliseconds": 500,
|
||||
"basic.to_if_alone_timeout_milliseconds": 1000,
|
||||
"basic.to_if_held_down_threshold_milliseconds": 500,
|
||||
"mouse_motion_to_scroll.speed": 100
|
||||
},
|
||||
"rules": [
|
||||
{
|
||||
"description": "CAPSLOCK + hjkl to arrow keys (Post ESCAPE if press CAPSLOCK alone)",
|
||||
"manipulators": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "j",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "down_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "up_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "l",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "right_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "a",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "home"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "g",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "end"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "d",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "9",
|
||||
"modifiers": [
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "f",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "0",
|
||||
"modifiers": [
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "u",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "open_bracket",
|
||||
"modifiers": [
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "p",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "close_bracket",
|
||||
"modifiers": [
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "i",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "open_bracket"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "o",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "close_bracket"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "caps_lock",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "caps_lock pressed",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_after_key_up": [
|
||||
{
|
||||
"set_variable": {
|
||||
"name": "caps_lock pressed",
|
||||
"value": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"to_if_alone": [
|
||||
{
|
||||
"key_code": "escape"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "x",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "delete_forward"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "n",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "delete_or_backspace"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "r",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "slash"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "t",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "backslash"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "e",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "quote",
|
||||
"modifiers": [
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "semicolon",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "7",
|
||||
"modifiers": [
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "caps_lock pressed",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "quote",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "5",
|
||||
"modifiers": [
|
||||
"shift"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"devices": [
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 832,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": false,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 832,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": false,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 34304,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 50484,
|
||||
"vendor_id": 1133
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": false,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 50484,
|
||||
"vendor_id": 1133
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": false,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 8775,
|
||||
"vendor_id": 1008
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
}
|
||||
],
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f1"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f2"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_increment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f3"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "mission_control"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f4"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "spotlight"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f5"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "dictation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f6"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "f6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f7"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "rewind"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f8"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "play_or_pause"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f9"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "fast_forward"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f10"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "mute"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f11"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f12"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_increment"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"indicate_sticky_modifier_keys_state": true,
|
||||
"mouse_key_xy_scale": 100,
|
||||
"name": "Default profile",
|
||||
"parameters": {
|
||||
"delay_milliseconds_before_open_device": 1000
|
||||
},
|
||||
"selected": true,
|
||||
"simple_modifications": [],
|
||||
"virtual_hid_keyboard": {
|
||||
"country_code": 0,
|
||||
"indicate_sticky_modifier_keys_state": true,
|
||||
"mouse_key_xy_scale": 100
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
199
eggs/karabiner/.config/karabiner/karabiner.ts
Normal file
|
@ -0,0 +1,199 @@
|
|||
function manipulators(): Array<Mapping> {
|
||||
return [
|
||||
// Raise binds
|
||||
bindWithMods(["left_option", "left_cmd"], "t", raise("Teams")),
|
||||
|
||||
|
||||
// movement
|
||||
bindCaps("h", press("left_arrow")),
|
||||
bindCaps("j", press("down_arrow")),
|
||||
bindCaps("k", press("up_arrow")),
|
||||
bindCaps("l", press("right_arrow")),
|
||||
bindCaps("a", press("home")),
|
||||
bindCaps("g", press("end")),
|
||||
|
||||
// umlauts
|
||||
bind(["a", "s", "d"], umlaut("a")),
|
||||
bind(["k", "l", "semicolon"], umlaut("o")),
|
||||
bind(["i", "o", "p"], umlaut("u")),
|
||||
bind(["s", "d", "f"], [press("s", ["left_option"]), press("vk_none")]),
|
||||
|
||||
bind(["f", "a", "s", "d"], umlaut("a", true)),
|
||||
bind(["j", "k", "l", "semicolon"], umlaut("o", true)),
|
||||
bind(["j", "i", "o", "p"], umlaut("u", true)),
|
||||
|
||||
bind(["j", "l"], press("delete_or_backspace", ["left_option"])),
|
||||
|
||||
bindCaps("d", press("9", ["shift"])),
|
||||
bindCaps("f", press("0", ["shift"])),
|
||||
bindCaps("u", press("open_bracket", ["shift"])),
|
||||
bindCaps("p", press("close_bracket", ["shift"])),
|
||||
bindCaps("i", press("open_bracket")),
|
||||
bindCaps("o", press("close_bracket")),
|
||||
bindCaps("x", press("delete_forward")),
|
||||
bindCaps("n", press("delete_or_backspace")),
|
||||
bindCaps("r", press("slash")),
|
||||
bindCaps("t", press("backslash")),
|
||||
bindCaps("e", press("quote", ["shift"])),
|
||||
bindCaps("semicolon", press("7", ["shift"])),
|
||||
bindCaps("quote", press("5", ["shift"])),
|
||||
{
|
||||
from: from("caps_lock"),
|
||||
to: setVariable("caps_lock pressed", 1),
|
||||
to_after_key_up: setVariable("caps_lock pressed", 0),
|
||||
to_if_alone: [press("escape")],
|
||||
type: "basic",
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
function fn_function_keys(): Array<Mapping> {
|
||||
return [
|
||||
bind("f1", toConsumer("display_brightness_decrement")),
|
||||
bind("f2", toConsumer("display_brightness_increment")),
|
||||
bind("f3", toApple("mission_control")),
|
||||
bind("f4", toApple("spotlight")),
|
||||
bind("f5", toConsumer("dictation")),
|
||||
bind("f6", press("f6")),
|
||||
bind("f7", toConsumer("rewind")),
|
||||
bind("f8", toConsumer("play_or_pause")),
|
||||
bind("f9", toConsumer("fast_forward")),
|
||||
bind("f10", toConsumer("mute")),
|
||||
bind("f11", toConsumer("volume_decrement")),
|
||||
bind("f12", toConsumer("volume_increment")),
|
||||
];
|
||||
}
|
||||
|
||||
function generate() {
|
||||
const rules = [{
|
||||
description: "CAPSLOCK + hjkl to arrow keys",
|
||||
manipulators: manipulators(),
|
||||
}];
|
||||
return {
|
||||
global: {
|
||||
ask_for_confirmation_before_quitting: true,
|
||||
check_for_updates_on_startup: true,
|
||||
show_in_menu_bar: true,
|
||||
show_profile_name_in_menu_bar: false,
|
||||
unsafe_ui: false,
|
||||
},
|
||||
profiles: [
|
||||
{
|
||||
complex_modifications: {
|
||||
parameters: {
|
||||
"basic.simultaneous_threshold_milliseconds": 50,
|
||||
"basic.to_delayed_action_delay_milliseconds": 500,
|
||||
"basic.to_if_alone_timeout_milliseconds": 1000,
|
||||
"basic.to_if_held_down_threshold_milliseconds": 500,
|
||||
"mouse_motion_to_scroll.speed": 100,
|
||||
},
|
||||
rules,
|
||||
},
|
||||
fn_function_keys: fn_function_keys(),
|
||||
indicate_sticky_modifier_keys_state: true,
|
||||
mouse_key_xy_scale: 100,
|
||||
name: "Default profile",
|
||||
parameters: { delay_milliseconds_before_open_device: 1000 },
|
||||
selected: true,
|
||||
simple_modifications: [],
|
||||
virtual_hid_keyboard: {
|
||||
country_code: 0,
|
||||
indicate_sticky_modifier_keys_state: true,
|
||||
mouse_key_xy_scale: 100,
|
||||
},
|
||||
devices: [],
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
console.log(JSON.stringify(generate(), null, 2));
|
||||
|
||||
// Helpers and types
|
||||
|
||||
type Condition = { name: string; type: string; value: number };
|
||||
|
||||
type From =
|
||||
| { key_code: string; modifiers: { optional: string[] } }
|
||||
| { simultaneous: { key_code: string }[]; modifiers: { optional: string[] } };
|
||||
|
||||
type ToAction =
|
||||
| { key_code: string; modifiers?: string[] }
|
||||
| { consumer_key_code: string; modifiers?: string[] }
|
||||
| { apple_vendor_keyboard_key_code: string; modifiers?: string[] }
|
||||
| { set_variable: { name: string; value: number } };
|
||||
type To = Array<ToAction>;
|
||||
|
||||
type Mapping = {
|
||||
conditions?: Condition[];
|
||||
from: From;
|
||||
to: To;
|
||||
to_after_key_up?: To;
|
||||
to_if_alone?: To;
|
||||
type: "basic";
|
||||
};
|
||||
|
||||
function from(key: string | string[], optional: string[] = ["any"], mandatory: string[] = []): From {
|
||||
if (typeof key === "string") {
|
||||
return { key_code: key, modifiers: { optional, mandatory } };
|
||||
} else if (Array.isArray(key)) {
|
||||
return {
|
||||
simultaneous: key.map((x) => ({ key_code: x })),
|
||||
modifiers: { optional },
|
||||
};
|
||||
} else {
|
||||
throw new Error("Invalid key type");
|
||||
}
|
||||
}
|
||||
|
||||
function umlaut(letter: string, capital: boolean = false): To {
|
||||
return [
|
||||
press("u", ["left_option"]),
|
||||
press(letter, capital ? ["left_shift"] : []),
|
||||
press("vk_none"),
|
||||
];
|
||||
}
|
||||
|
||||
function press(key: string, mods: string[] = []): ToAction {
|
||||
return { key_code: key, modifiers: mods };
|
||||
}
|
||||
|
||||
function toConsumer(key: string): To {
|
||||
return [{ consumer_key_code: key }];
|
||||
}
|
||||
|
||||
function toApple(key: string): To {
|
||||
return [{ apple_vendor_keyboard_key_code: key }];
|
||||
}
|
||||
|
||||
function bind(
|
||||
f: string | string[],
|
||||
to: ToAction | To,
|
||||
when: Condition[] = [],
|
||||
): Mapping {
|
||||
const toValue = Array.isArray(to) ? to : [to];
|
||||
return { conditions: when, from: from(f), to: toValue, type: "basic" };
|
||||
}
|
||||
|
||||
function bindWithMods(
|
||||
f: string | string[],
|
||||
mods: string[],
|
||||
to: ToAction | To,
|
||||
when: Condition[] = [],
|
||||
): Mapping {
|
||||
const toValue = Array.isArray(to) ? to : [to];
|
||||
return { conditions: when, from: from(f, [], mods), to: toValue, type: "basic" };
|
||||
}
|
||||
|
||||
function bindCaps(from: string | string[], to: ToAction | To): Mapping {
|
||||
const capsCondition: Condition = {
|
||||
name: "caps_lock pressed",
|
||||
type: "variable_if",
|
||||
value: 1,
|
||||
};
|
||||
return bind(from, to, [capsCondition]);
|
||||
}
|
||||
|
||||
function setVariable(name: string, value: number): To {
|
||||
return [{ set_variable: { name, value } }];
|
||||
}
|
5
eggs/karabiner/.config/karabiner/update.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
deno run ./karabiner.ts > karabiner.json
|
||||
# yq -o=json config.yaml > karabiner.json
|
6252
eggs/other-dotfiles-stuff/other-dotfile-stuff/bazecor-raise-layers
Normal file
6378
eggs/other-dotfiles-stuff/other-dotfile-stuff/github_gruvbox.css
Normal file
|
@ -0,0 +1,104 @@
|
|||
/* ==UserStyle==
|
||||
@name Github gruvbox
|
||||
@namespace github.com/openstyles/stylus
|
||||
@version 1.0.0
|
||||
@description A new userstyle
|
||||
@author Me
|
||||
==/UserStyle== */
|
||||
@-moz-document domain("github.com") {
|
||||
|
||||
|
||||
[data-color-mode=dark] {
|
||||
--color-bg-canvas: #282828 !important;
|
||||
--color-bg-canvas-inset: #1d2021 !important;
|
||||
--color-bg-canvas-inverse: #080808 !important;
|
||||
--color-bg-canvas-mobile: #080808 !important;
|
||||
--color-header-bg: #282828 !important;
|
||||
--color-bg-primary: #1d2021 !important;
|
||||
--color-bg-secondary: #1d2021 !important;
|
||||
--color-bg-tertiary: #3c3836 !important;
|
||||
--color-border-primary: transparent !important;
|
||||
--color-border-secondary: transparent !important;
|
||||
--color-box-header-blue-bg: transparent !important;
|
||||
--color-box-header-blue-border: transparent !important;
|
||||
--color-btn-bg: #ffffff10 !important;
|
||||
--color-social-count-bg: #ffffff20 !important;
|
||||
--color-btn-border: transparent !important;
|
||||
--color-btn-hover-bg: #ffffff20 !important;
|
||||
--color-btn-hover-border: transparent !important;
|
||||
--color-topic-tag-bg: #5c8ae610 !important;
|
||||
--color-header-search-bg: #ffffff10 !important;
|
||||
--color-header-text: #ebdbb2 !important;
|
||||
--color-header-logo: #ebdbb2 !important;
|
||||
--color-header-search-border: transparent !important;
|
||||
--color-input-contrast-bg: #ffffff10 !important;
|
||||
--color-input-bg: #ffffff10 !important;
|
||||
--color-input-border: transparent !important;
|
||||
--color-text-primary: #fbf1c7 !important;
|
||||
--color-text-secondary: #fbf1c7 !important;
|
||||
--color-text-tertiary: #ebdbb2 !important;
|
||||
--color-underlinenav-text: #ebdbb2 !important;
|
||||
--color-underlinenav-text-active: #ebdbb2 !important;
|
||||
--color-text-placeholder: #ffffff40 !important;
|
||||
--color-underlinenav-counter-text: #ffffffAA !important;
|
||||
--color-counter-bg: #ffffff20 !important;
|
||||
--color-underlinenav-icon: #ffffffAA !important;
|
||||
--color-calendar-graph-day-bg: #ffffff10 !important;
|
||||
--color-border-overlay: transparent !important;
|
||||
--color-shadow-large: rgb(1, 4, 9) 2px 2px 12px 0px !important;
|
||||
--color-bg-overlay: #1c1c1c !important;
|
||||
--color-select-menu-backdrop-bg: #1c1c1c !important;
|
||||
--color-state-hover-secondary-bg: #ffffff10 !important;
|
||||
--color-menu-bg-active: #ffffff10 !important;
|
||||
--color-bg-info: #1c1c1c !important;
|
||||
--color-btn-selected-bg: #ffffff20 !important;
|
||||
--color-sidenav-selected-bg: #ffffff10 !important;
|
||||
--color-auto-gray-2: #ffffff20 !important;
|
||||
--color-state-selected-primary-bg: #835ce6 !important;
|
||||
--color-text-link: #458588 !important;
|
||||
--color-icon-success: #8ec07c !important;
|
||||
}
|
||||
|
||||
[data-color-mode=dark] * {
|
||||
transition-duration: 150ms !important;
|
||||
}
|
||||
|
||||
[data-color-mode=dark] .markdown-body img,
|
||||
[data-color-mode=dark] .bg-white:not(aside):not(.position-sticky) {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
[data-color-mode=dark] main .Box-header--blue,
|
||||
[data-color-mode=dark] main .Box,
|
||||
[data-color-mode=dark] .Box-row,
|
||||
[data-color-mode=dark] .Box-header,
|
||||
[data-color-mode=dark] .border-top .SelectMenu-item:last-child {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
[data-color-mode=dark] .tabnav-tab.selected,
|
||||
[data-color-mode=dark] .tabnav-tab[aria-current]:not([aria-current=false]),
|
||||
[data-color-mode=dark] .tabnav-tab[aria-selected=true],
|
||||
[data-color-mode=dark] .pinned-issue-item,
|
||||
[data-color-mode=dark] pager-flow,
|
||||
[data-color-mode=dark] .border {
|
||||
background: #1d2021;
|
||||
}
|
||||
|
||||
[data-color-mode=dark] .SelectMenu-item {
|
||||
border-color: #ffffff10;
|
||||
}
|
||||
|
||||
[data-color-mode=dark] .Box-row--focus-gray.navigation-focus {
|
||||
background: #ffffff03;
|
||||
}
|
||||
|
||||
[data-color-mode=dark] main .Box-header,
|
||||
[data-color-mode=dark] .Box-row {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
svg {
|
||||
color: var(--color-fg-primary) !important;
|
||||
}
|
||||
}
|
6755
eggs/other-dotfiles-stuff/other-dotfile-stuff/gitlab_gruvbox.css
Normal file
|
@ -0,0 +1,79 @@
|
|||
# todo I looked again and you could use the [System.Drawing.Color] type to parse and store your colors
|
||||
# [drawing.color]("#ffffff")
|
||||
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_ansi_terminals?view=powershell-7.2
|
||||
|
||||
if ($host.Name -eq "ConsoleHost")
|
||||
{
|
||||
Import-Module PSReadline
|
||||
Set-PSReadLineKeyHandler -Chord Control+Delete -Function BackwardKillWord
|
||||
Set-PSReadLineKeyHandler -Chord Control+Backspace -Function BackwardKillWord
|
||||
Set-PSReadLineKeyHandler -Chord Control+RightArrow -Function NextWord
|
||||
Set-PSReadLineKeyHandler -Chord Control+LeftArrow -Function BackwardWord
|
||||
|
||||
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
|
||||
Set-PSReadlineKeyHandler –Key DownArrow -Function HistorySearchForward
|
||||
|
||||
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
|
||||
Set-PSReadLineKeyHandler -Chord Control+c -Function RevertLine
|
||||
#Set-PSReadlineKeyHandler -Chord Control+C -Function CancelLine
|
||||
|
||||
}
|
||||
|
||||
function Convert-HexToAnsiiEscape
|
||||
{
|
||||
param ([Parameter(Mandatory)] [string]$hex)
|
||||
$nohash = $hex.substring(1)
|
||||
$rgb = $nohash -split '(..)' -ne '' | ForEach-Object { [Convert]::ToInt64($_, 16) }
|
||||
[char]27 + "$ansi_escape[38;2;{0};{1};{2}m" -f $rgb[0], $rgb[1],$rgb[2]
|
||||
}
|
||||
|
||||
$Colors = @{
|
||||
cyan = Convert-HexToAnsiiEscape("#8ec07c")
|
||||
white = Convert-HexToAnsiiEscape("#ebdbb2")
|
||||
green = Convert-HexToAnsiiEscape("#b8bb26")
|
||||
}
|
||||
|
||||
|
||||
function prompt_git_status
|
||||
{
|
||||
try
|
||||
{
|
||||
$branch = (git branch | Select-String -Pattern "\* ") -Replace "\* ",""
|
||||
$change_indicator = (git status --short) ? "*" : ""
|
||||
$branch ? "($($Colors.cyan)$branch$($Colors.white)$change_indicator)" : ""
|
||||
} catch
|
||||
{
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
function shorten_string_to
|
||||
{
|
||||
param ([string]$text, [int]$length)
|
||||
($text.length -gt $length) ? $text.substring(0, $length) : $text
|
||||
}
|
||||
|
||||
function shorten_path
|
||||
{
|
||||
param ([string]$path)
|
||||
$no_home=($path -Replace "$HOME","~")
|
||||
$segments = ($no_home -split "/")
|
||||
if ($segments.count -lt 2)
|
||||
{
|
||||
return $no_home
|
||||
}
|
||||
$init_part = $segments[0..($segments.count - 2)]
|
||||
$last_part = $segments[($segments.count - 1)]
|
||||
$cleaned_init = ($init_part | ForEach-Object { shorten_string_to -text $_ -length 5 }) -join "/"
|
||||
return "$cleaned_init/$last_part"
|
||||
}
|
||||
|
||||
function Prompt
|
||||
{
|
||||
$prompt = "╭───$($Colors.cyan)$env:USER"
|
||||
$prompt += "$($Colors.white) powershelling in "
|
||||
$prompt += "$($Colors.green)$(shorten_path(Get-Location))$($Colors.white) "
|
||||
$prompt += prompt_git_status
|
||||
$prompt += "`n╰─λ "
|
||||
$prompt
|
||||
}
|
66
eggs/profile/.profile
Normal file
|
@ -0,0 +1,66 @@
|
|||
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
||||
. $HOME/.nix-profile/etc/profile.d/nix.sh;
|
||||
export XDG_DATA_DIRS="$HOME/.nix-profile/share/applications:$HOME/.local/share/applications:/usr/local/share:/usr/share"
|
||||
export LOCALE_ARCHIVE=$(nix-build '<nixpkgs>' --no-out-link -A glibcLocales)/lib/locale/locale-archive
|
||||
export PATH="$HOME/.nix-profile/share/applications/:$PATH"
|
||||
export PATH="$HOME/.nix-profile/bin/:$PATH"
|
||||
fi
|
||||
|
||||
export PATH="$HOME/.local/bin/scripts:$PATH"
|
||||
export PATH="$HOME/.emacs.d/bin/:$PATH"
|
||||
export PATH="$HOME/.npm-global/bin:$PATH"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
export PATH="$HOME/.cpm/bin:$PATH"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export PATH="$HOME/.nimble/bin:$PATH"
|
||||
export PATH="$HOME/.dotnet/tools:$PATH"
|
||||
|
||||
|
||||
export EDITOR="$(which nvim)"
|
||||
export BROWSER="$(which google-chrome-stable)"
|
||||
#export TERMINAL="$(which alacritty)"
|
||||
export TERMINAL="$(which foot)"
|
||||
|
||||
|
||||
export RANGER_LOAD_DEFAULT_RC=FALSE
|
||||
|
||||
export FZF_DEFAULT_COMMAND='rg --files'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_ALT_C_COMMAND="rg --files --null | xargs -0 dirname | sort -u"
|
||||
|
||||
export LESSHISTFILE="/dev/null"
|
||||
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
|
||||
|
||||
# Man pages color support
|
||||
export LESS_TERMCAP_mb=$'\e[1;32m'
|
||||
export LESS_TERMCAP_md=$'\e[1;32m'
|
||||
export LESS_TERMCAP_me=$'\e[0m'
|
||||
export LESS_TERMCAP_se=$'\e[0m'
|
||||
export LESS_TERMCAP_so=$'\e[01;33m'
|
||||
export LESS_TERMCAP_ue=$'\e[0m'
|
||||
export LESS_TERMCAP_us=$'\e[1;4;31m'
|
||||
|
||||
|
||||
export FREETYPE_PROPERTIES='truetype:interpreter-version=40'
|
||||
export _JAVA_OPTIONS='-Dswing.aatext=true -Dawt.useSystemAAFontSettings=lcd'
|
||||
|
||||
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
|
||||
command -v opam > /dev/null && eval "$(opam env)"
|
||||
command -v luarocks > /dev/null && eval "$(luarocks path --lua-version=5.4)"
|
||||
command -v zoxide > /dev/null && eval "$(zoxide init zsh)"
|
||||
|
||||
## Launches tbsm on session start
|
||||
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
|
||||
if command -v tbsm > /dev/null; then
|
||||
tbsm
|
||||
fi
|
||||
fi
|
||||
|
||||
export NVM_DIR="$HOME/.config/nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
102
eggs/rofi/.config/rofi/applets/bin/appasroot.sh
Executable file
|
@ -0,0 +1,102 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : Run Applications as Root
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Theme Elements
|
||||
prompt='Applications'
|
||||
mesg='Run Applications as Root'
|
||||
|
||||
if [[ "$theme" == *'type-1'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='400px'
|
||||
elif [[ "$theme" == *'type-3'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='120px'
|
||||
elif [[ "$theme" == *'type-5'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='520px'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='5'
|
||||
list_row='1'
|
||||
win_width='670px'
|
||||
fi
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
option_1=" Alacritty"
|
||||
option_2=" Thunar"
|
||||
option_3=" Geany"
|
||||
option_4=" Ranger"
|
||||
option_5=" Vim"
|
||||
else
|
||||
option_1=""
|
||||
option_2=""
|
||||
option_3=""
|
||||
option_4=""
|
||||
option_5=""
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "window {width: $win_width;}" \
|
||||
-theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str 'textbox-prompt-colon {str: "";}' \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5" | rofi_cmd
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
polkit_cmd="pkexec env PATH=$PATH DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY"
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
${polkit_cmd} alacritty
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
${polkit_cmd} dbus-run-session thunar
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
${polkit_cmd} geany
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
${polkit_cmd} alacritty -e ranger
|
||||
elif [[ "$1" == '--opt5' ]]; then
|
||||
${polkit_cmd} alacritty -e vim
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
$option_5)
|
||||
run_cmd --opt5
|
||||
;;
|
||||
esac
|
||||
|
104
eggs/rofi/.config/rofi/applets/bin/apps.sh
Executable file
|
@ -0,0 +1,104 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : Favorite Applications
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Theme Elements
|
||||
prompt='Applications'
|
||||
mesg="Installed Packages : `pacman -Q | wc -l` (pacman)"
|
||||
|
||||
if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-3'* ) || ( "$theme" == *'type-5'* ) ]]; then
|
||||
list_col='1'
|
||||
list_row='6'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='6'
|
||||
list_row='1'
|
||||
fi
|
||||
|
||||
# CMDs (add your apps here)
|
||||
term_cmd='alacritty'
|
||||
file_cmd='thunar'
|
||||
text_cmd='geany'
|
||||
web_cmd='firefox'
|
||||
music_cmd='alacritty -e ncmpcpp'
|
||||
setting_cmd='xfce4-settings-manager'
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
option_1=" Terminal <span weight='light' size='small'><i>($term_cmd)</i></span>"
|
||||
option_2=" Files <span weight='light' size='small'><i>($file_cmd)</i></span>"
|
||||
option_3=" Editor <span weight='light' size='small'><i>($text_cmd)</i></span>"
|
||||
option_4=" Browser <span weight='light' size='small'><i>($web_cmd)</i></span>"
|
||||
option_5=" Music <span weight='light' size='small'><i>($music_cmd)</i></span>"
|
||||
option_6=" Settings <span weight='light' size='small'><i>($setting_cmd)</i></span>"
|
||||
else
|
||||
option_1=""
|
||||
option_2=""
|
||||
option_3=""
|
||||
option_4=""
|
||||
option_5=""
|
||||
option_6=""
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str 'textbox-prompt-colon {str: "";}' \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
${term_cmd}
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
${file_cmd}
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
${text_cmd}
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
${web_cmd}
|
||||
elif [[ "$1" == '--opt5' ]]; then
|
||||
${music_cmd}
|
||||
elif [[ "$1" == '--opt6' ]]; then
|
||||
${setting_cmd}
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
$option_5)
|
||||
run_cmd --opt5
|
||||
;;
|
||||
$option_6)
|
||||
run_cmd --opt6
|
||||
;;
|
||||
esac
|
134
eggs/rofi/.config/rofi/applets/bin/battery.sh
Executable file
|
@ -0,0 +1,134 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : Battery
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Battery Info
|
||||
battery="`acpi -b | cut -d',' -f1 | cut -d':' -f1`"
|
||||
status="`acpi -b | cut -d',' -f1 | cut -d':' -f2 | tr -d ' '`"
|
||||
percentage="`acpi -b | cut -d',' -f2 | tr -d ' ',\%`"
|
||||
time="`acpi -b | cut -d',' -f3`"
|
||||
|
||||
if [[ -z "$time" ]]; then
|
||||
time=' Fully Charged'
|
||||
fi
|
||||
|
||||
# Theme Elements
|
||||
prompt="$status"
|
||||
mesg="${battery}: ${percentage}%,${time}"
|
||||
|
||||
if [[ "$theme" == *'type-1'* ]]; then
|
||||
list_col='1'
|
||||
list_row='4'
|
||||
win_width='400px'
|
||||
elif [[ "$theme" == *'type-3'* ]]; then
|
||||
list_col='1'
|
||||
list_row='4'
|
||||
win_width='120px'
|
||||
elif [[ "$theme" == *'type-5'* ]]; then
|
||||
list_col='1'
|
||||
list_row='4'
|
||||
win_width='500px'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='4'
|
||||
list_row='1'
|
||||
win_width='550px'
|
||||
fi
|
||||
|
||||
# Charging Status
|
||||
active=""
|
||||
urgent=""
|
||||
if [[ $status = *"Charging"* ]]; then
|
||||
active="-a 1"
|
||||
ICON_CHRG=""
|
||||
elif [[ $status = *"Full"* ]]; then
|
||||
active="-u 1"
|
||||
ICON_CHRG=""
|
||||
else
|
||||
urgent="-u 1"
|
||||
ICON_CHRG=""
|
||||
fi
|
||||
|
||||
# Discharging
|
||||
if [[ $percentage -ge 5 ]] && [[ $percentage -le 19 ]]; then
|
||||
ICON_DISCHRG=""
|
||||
elif [[ $percentage -ge 20 ]] && [[ $percentage -le 39 ]]; then
|
||||
ICON_DISCHRG=""
|
||||
elif [[ $percentage -ge 40 ]] && [[ $percentage -le 59 ]]; then
|
||||
ICON_DISCHRG=""
|
||||
elif [[ $percentage -ge 60 ]] && [[ $percentage -le 79 ]]; then
|
||||
ICON_DISCHRG=""
|
||||
elif [[ $percentage -ge 80 ]] && [[ $percentage -le 100 ]]; then
|
||||
ICON_DISCHRG=""
|
||||
fi
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
option_1=" Remaining ${percentage}%"
|
||||
option_2=" $status"
|
||||
option_3=" Power Manager"
|
||||
option_4=" Diagnose"
|
||||
else
|
||||
option_1="$ICON_DISCHRG"
|
||||
option_2="$ICON_CHRG"
|
||||
option_3=""
|
||||
option_4=""
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "window {width: $win_width;}" \
|
||||
-theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str "textbox-prompt-colon {str: \"$ICON_DISCHRG\";}" \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
${active} ${urgent} \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4" | rofi_cmd
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
polkit_cmd="pkexec env PATH=$PATH DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY"
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
notify-send -u low " Remaining : ${percentage}%"
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
notify-send -u low "$ICON_CHRG Status : $status"
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
xfce4-power-manager-settings
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
${polkit_cmd} alacritty -e powertop
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
esac
|
||||
|
||||
|
107
eggs/rofi/.config/rofi/applets/bin/brightness.sh
Executable file
|
@ -0,0 +1,107 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : Brightness
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Brightness Info
|
||||
backlight="$(printf "%.0f\n" `light -G`)"
|
||||
card="`light -L | grep 'backlight' | head -n1 | cut -d'/' -f3`"
|
||||
|
||||
if [[ $backlight -ge 0 ]] && [[ $backlight -le 29 ]]; then
|
||||
level="Low"
|
||||
elif [[ $backlight -ge 30 ]] && [[ $backlight -le 49 ]]; then
|
||||
level="Optimal"
|
||||
elif [[ $backlight -ge 50 ]] && [[ $backlight -le 69 ]]; then
|
||||
level="High"
|
||||
elif [[ $backlight -ge 70 ]] && [[ $backlight -le 100 ]]; then
|
||||
level="Peak"
|
||||
fi
|
||||
|
||||
# Theme Elements
|
||||
prompt="${backlight}%"
|
||||
mesg="Device: ${card}, Level: $level"
|
||||
|
||||
if [[ "$theme" == *'type-1'* ]]; then
|
||||
list_col='1'
|
||||
list_row='4'
|
||||
win_width='400px'
|
||||
elif [[ "$theme" == *'type-3'* ]]; then
|
||||
list_col='1'
|
||||
list_row='4'
|
||||
win_width='120px'
|
||||
elif [[ "$theme" == *'type-5'* ]]; then
|
||||
list_col='1'
|
||||
list_row='4'
|
||||
win_width='425px'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='4'
|
||||
list_row='1'
|
||||
win_width='550px'
|
||||
fi
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
option_1=" Increase"
|
||||
option_2=" Optimal"
|
||||
option_3=" Decrease"
|
||||
option_4=" Settings"
|
||||
else
|
||||
option_1=""
|
||||
option_2=""
|
||||
option_3=""
|
||||
option_4=""
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "window {width: $win_width;}" \
|
||||
-theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str 'textbox-prompt-colon {str: "";}' \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4" | rofi_cmd
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
light -A 5
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
light -S 25
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
light -U 5
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
xfce4-power-manager-settings
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
esac
|
131
eggs/rofi/.config/rofi/applets/bin/mpd.sh
Executable file
|
@ -0,0 +1,131 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : MPD (music)
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Theme Elements
|
||||
status="`mpc status`"
|
||||
if [[ -z "$status" ]]; then
|
||||
prompt='Offline'
|
||||
mesg="MPD is Offline"
|
||||
else
|
||||
prompt="`mpc -f "%artist%" current`"
|
||||
mesg="`mpc -f "%title%" current` :: `mpc status | grep "#" | awk '{print $3}'`"
|
||||
fi
|
||||
|
||||
if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-3'* ) || ( "$theme" == *'type-5'* ) ]]; then
|
||||
list_col='1'
|
||||
list_row='6'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='6'
|
||||
list_row='1'
|
||||
fi
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
if [[ ${status} == *"[playing]"* ]]; then
|
||||
option_1=" Pause"
|
||||
else
|
||||
option_1=" Play"
|
||||
fi
|
||||
option_2=" Stop"
|
||||
option_3=" Previous"
|
||||
option_4=" Next"
|
||||
option_5=" Repeat"
|
||||
option_6=" Random"
|
||||
else
|
||||
if [[ ${status} == *"[playing]"* ]]; then
|
||||
option_1=""
|
||||
else
|
||||
option_1=""
|
||||
fi
|
||||
option_2=""
|
||||
option_3=""
|
||||
option_4=""
|
||||
option_5=""
|
||||
option_6=""
|
||||
fi
|
||||
|
||||
# Toggle Actions
|
||||
active=''
|
||||
urgent=''
|
||||
# Repeat
|
||||
if [[ ${status} == *"repeat: on"* ]]; then
|
||||
active="-a 4"
|
||||
elif [[ ${status} == *"repeat: off"* ]]; then
|
||||
urgent="-u 4"
|
||||
else
|
||||
option_5=" Parsing Error"
|
||||
fi
|
||||
# Random
|
||||
if [[ ${status} == *"random: on"* ]]; then
|
||||
[ -n "$active" ] && active+=",5" || active="-a 5"
|
||||
elif [[ ${status} == *"random: off"* ]]; then
|
||||
[ -n "$urgent" ] && urgent+=",5" || urgent="-u 5"
|
||||
else
|
||||
option_6=" Parsing Error"
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str 'textbox-prompt-colon {str: "";}' \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
${active} ${urgent} \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
mpc -q toggle && notify-send -u low -t 1000 " `mpc current`"
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
mpc -q stop
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
mpc -q prev && notify-send -u low -t 1000 " `mpc current`"
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
mpc -q next && notify-send -u low -t 1000 " `mpc current`"
|
||||
elif [[ "$1" == '--opt5' ]]; then
|
||||
mpc -q repeat
|
||||
elif [[ "$1" == '--opt6' ]]; then
|
||||
mpc -q random
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
$option_5)
|
||||
run_cmd --opt5
|
||||
;;
|
||||
$option_6)
|
||||
run_cmd --opt6
|
||||
;;
|
||||
esac
|
129
eggs/rofi/.config/rofi/applets/bin/powermenu.sh
Executable file
|
@ -0,0 +1,129 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : Power Menu
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Theme Elements
|
||||
prompt="`hostname`"
|
||||
mesg="Uptime : `uptime -p | sed -e 's/up //g'`"
|
||||
|
||||
if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-3'* ) || ( "$theme" == *'type-5'* ) ]]; then
|
||||
list_col='1'
|
||||
list_row='6'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='6'
|
||||
list_row='1'
|
||||
fi
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
option_1=" Lock"
|
||||
option_2=" Logout"
|
||||
option_3=" Suspend"
|
||||
option_4=" Hibernate"
|
||||
option_5=" Reboot"
|
||||
option_6=" Shutdown"
|
||||
yes=' Yes'
|
||||
no=' No'
|
||||
else
|
||||
option_1=""
|
||||
option_2=""
|
||||
option_3=""
|
||||
option_4=""
|
||||
option_5=""
|
||||
option_6=""
|
||||
yes=''
|
||||
no=''
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str 'textbox-prompt-colon {str: "";}' \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd
|
||||
}
|
||||
|
||||
# Confirmation CMD
|
||||
confirm_cmd() {
|
||||
rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 350px;}' \
|
||||
-theme-str 'mainbox {orientation: vertical; children: [ "message", "listview" ];}' \
|
||||
-theme-str 'listview {columns: 2; lines: 1;}' \
|
||||
-theme-str 'element-text {horizontal-align: 0.5;}' \
|
||||
-theme-str 'textbox {horizontal-align: 0.5;}' \
|
||||
-dmenu \
|
||||
-p 'Confirmation' \
|
||||
-mesg 'Are you Sure?' \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Ask for confirmation
|
||||
confirm_exit() {
|
||||
echo -e "$yes\n$no" | confirm_cmd
|
||||
}
|
||||
|
||||
# Confirm and execute
|
||||
confirm_run () {
|
||||
selected="$(confirm_exit)"
|
||||
if [[ "$selected" == "$yes" ]]; then
|
||||
${1} && ${2} && ${3}
|
||||
else
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
betterlockscreen -l
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
confirm_run 'kill -9 -1'
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
confirm_run 'mpc -q pause' 'amixer set Master mute' 'systemctl suspend'
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
confirm_run 'systemctl hibernate'
|
||||
elif [[ "$1" == '--opt5' ]]; then
|
||||
confirm_run 'systemctl reboot'
|
||||
elif [[ "$1" == '--opt6' ]]; then
|
||||
confirm_run 'systemctl poweroff'
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
$option_5)
|
||||
run_cmd --opt5
|
||||
;;
|
||||
$option_6)
|
||||
run_cmd --opt6
|
||||
;;
|
||||
esac
|
||||
|
103
eggs/rofi/.config/rofi/applets/bin/quicklinks.sh
Executable file
|
@ -0,0 +1,103 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : Quick Links
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Theme Elements
|
||||
prompt='Quick Links'
|
||||
mesg="Using '$BROWSER' as web browser"
|
||||
|
||||
if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-3'* ) || ( "$theme" == *'type-5'* ) ]]; then
|
||||
list_col='1'
|
||||
list_row='6'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='6'
|
||||
list_row='1'
|
||||
fi
|
||||
|
||||
if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-5'* ) ]]; then
|
||||
efonts="JetBrains Mono Nerd Font 10"
|
||||
else
|
||||
efonts="JetBrains Mono Nerd Font 28"
|
||||
fi
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
option_1=" Google"
|
||||
option_2=" Gmail"
|
||||
option_3=" Youtube"
|
||||
option_4=" Github"
|
||||
option_5=" Reddit"
|
||||
option_6=" Twitter"
|
||||
else
|
||||
option_1=""
|
||||
option_2=""
|
||||
option_3=""
|
||||
option_4=""
|
||||
option_5=""
|
||||
option_6=""
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str 'textbox-prompt-colon {str: "";}' \
|
||||
-theme-str "element-text {font: \"$efonts\";}" \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
xdg-open 'https://www.google.com/'
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
xdg-open 'https://mail.google.com/'
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
xdg-open 'https://www.youtube.com/'
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
xdg-open 'https://www.github.com/'
|
||||
elif [[ "$1" == '--opt5' ]]; then
|
||||
xdg-open 'https://www.reddit.com/'
|
||||
elif [[ "$1" == '--opt6' ]]; then
|
||||
xdg-open 'https://www.twitter.com/'
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
$option_5)
|
||||
run_cmd --opt5
|
||||
;;
|
||||
$option_6)
|
||||
run_cmd --opt6
|
||||
;;
|
||||
esac
|
165
eggs/rofi/.config/rofi/applets/bin/screenshot.sh
Executable file
|
@ -0,0 +1,165 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : Screenshot
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Theme Elements
|
||||
prompt='Screenshot'
|
||||
mesg="DIR: `xdg-user-dir PICTURES`/Screenshots"
|
||||
|
||||
if [[ "$theme" == *'type-1'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='400px'
|
||||
elif [[ "$theme" == *'type-3'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='120px'
|
||||
elif [[ "$theme" == *'type-5'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='520px'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='5'
|
||||
list_row='1'
|
||||
win_width='670px'
|
||||
fi
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
option_1=" Capture Desktop"
|
||||
option_2=" Capture Area"
|
||||
option_3=" Capture Window"
|
||||
option_4=" Capture in 5s"
|
||||
option_5=" Capture in 10s"
|
||||
else
|
||||
option_1=""
|
||||
option_2=""
|
||||
option_3=""
|
||||
option_4=""
|
||||
option_5=""
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "window {width: $win_width;}" \
|
||||
-theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str 'textbox-prompt-colon {str: "";}' \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5" | rofi_cmd
|
||||
}
|
||||
|
||||
# Screenshot
|
||||
time=`date +%Y-%m-%d-%H-%M-%S`
|
||||
geometry=`xrandr | grep 'current' | head -n1 | cut -d',' -f2 | tr -d '[:blank:],current'`
|
||||
dir="`xdg-user-dir PICTURES`/Screenshots"
|
||||
file="Screenshot_${time}_${geometry}.png"
|
||||
|
||||
if [[ ! -d "$dir" ]]; then
|
||||
mkdir -p "$dir"
|
||||
fi
|
||||
|
||||
# notify and view screenshot
|
||||
notify_view() {
|
||||
notify_cmd_shot='dunstify -u low --replace=699'
|
||||
${notify_cmd_shot} "Copied to clipboard."
|
||||
viewnior ${dir}/"$file"
|
||||
if [[ -e "$dir/$file" ]]; then
|
||||
${notify_cmd_shot} "Screenshot Saved."
|
||||
else
|
||||
${notify_cmd_shot} "Screenshot Deleted."
|
||||
fi
|
||||
}
|
||||
|
||||
# Copy screenshot to clipboard
|
||||
copy_shot () {
|
||||
tee "$file" | xclip -selection clipboard -t image/png
|
||||
}
|
||||
|
||||
# countdown
|
||||
countdown () {
|
||||
for sec in `seq $1 -1 1`; do
|
||||
dunstify -t 1000 --replace=699 "Taking shot in : $sec"
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
|
||||
# take shots
|
||||
shotnow () {
|
||||
cd ${dir} && sleep 0.5 && maim -u -f png | copy_shot
|
||||
notify_view
|
||||
}
|
||||
|
||||
shot5 () {
|
||||
countdown '5'
|
||||
sleep 1 && cd ${dir} && maim -u -f png | copy_shot
|
||||
notify_view
|
||||
}
|
||||
|
||||
shot10 () {
|
||||
countdown '10'
|
||||
sleep 1 && cd ${dir} && maim -u -f png | copy_shot
|
||||
notify_view
|
||||
}
|
||||
|
||||
shotwin () {
|
||||
cd ${dir} && maim -u -f png -i `xdotool getactivewindow` | copy_shot
|
||||
notify_view
|
||||
}
|
||||
|
||||
shotarea () {
|
||||
cd ${dir} && maim -u -f png -s -b 2 -c 0.35,0.55,0.85,0.25 -l | copy_shot
|
||||
notify_view
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
shotnow
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
shotarea
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
shotwin
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
shot5
|
||||
elif [[ "$1" == '--opt5' ]]; then
|
||||
shot10
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
$option_5)
|
||||
run_cmd --opt5
|
||||
;;
|
||||
esac
|
||||
|
||||
|
134
eggs/rofi/.config/rofi/applets/bin/volume.sh
Executable file
|
@ -0,0 +1,134 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Applets : Volume
|
||||
|
||||
# Import Current Theme
|
||||
source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Volume Info
|
||||
mixer="`amixer info Master | grep 'Mixer name' | cut -d':' -f2 | tr -d \',' '`"
|
||||
speaker="`amixer get Master | tail -n1 | awk -F ' ' '{print $5}' | tr -d '[]'`"
|
||||
mic="`amixer get Capture | tail -n1 | awk -F ' ' '{print $5}' | tr -d '[]'`"
|
||||
|
||||
active=""
|
||||
urgent=""
|
||||
|
||||
# Speaker Info
|
||||
amixer get Master | grep '\[on\]' &>/dev/null
|
||||
if [[ "$?" == 0 ]]; then
|
||||
active="-a 1"
|
||||
stext='Unmute'
|
||||
sicon=''
|
||||
else
|
||||
urgent="-u 1"
|
||||
stext='Mute'
|
||||
sicon=''
|
||||
fi
|
||||
|
||||
# Microphone Info
|
||||
amixer get Capture | grep '\[on\]' &>/dev/null
|
||||
if [[ "$?" == 0 ]]; then
|
||||
[ -n "$active" ] && active+=",3" || active="-a 3"
|
||||
mtext='Unmute'
|
||||
micon=''
|
||||
else
|
||||
[ -n "$urgent" ] && urgent+=",3" || urgent="-u 3"
|
||||
mtext='Mute'
|
||||
micon=''
|
||||
fi
|
||||
|
||||
# Theme Elements
|
||||
prompt="S:$stext, M:$mtext"
|
||||
mesg="$mixer - Speaker: $speaker, Mic: $mic"
|
||||
|
||||
if [[ "$theme" == *'type-1'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='400px'
|
||||
elif [[ "$theme" == *'type-3'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='120px'
|
||||
elif [[ "$theme" == *'type-5'* ]]; then
|
||||
list_col='1'
|
||||
list_row='5'
|
||||
win_width='520px'
|
||||
elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then
|
||||
list_col='5'
|
||||
list_row='1'
|
||||
win_width='670px'
|
||||
fi
|
||||
|
||||
# Options
|
||||
layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2`
|
||||
if [[ "$layout" == 'NO' ]]; then
|
||||
option_1=" Increase"
|
||||
option_2="$sicon $stext"
|
||||
option_3=" Decrese"
|
||||
option_4="$micon $mtext"
|
||||
option_5=" Settings"
|
||||
else
|
||||
option_1=""
|
||||
option_2="$sicon"
|
||||
option_3=""
|
||||
option_4="$micon"
|
||||
option_5=""
|
||||
fi
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -theme-str "window {width: $win_width;}" \
|
||||
-theme-str "listview {columns: $list_col; lines: $list_row;}" \
|
||||
-theme-str 'textbox-prompt-colon {str: "";}' \
|
||||
-dmenu \
|
||||
-p "$prompt" \
|
||||
-mesg "$mesg" \
|
||||
${active} ${urgent} \
|
||||
-markup-rows \
|
||||
-theme ${theme}
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5" | rofi_cmd
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
amixer -Mq set Master,0 5%+ unmute
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
amixer set Master toggle
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
amixer -Mq set Master,0 5%- unmute
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
amixer set Capture toggle
|
||||
elif [[ "$1" == '--opt5' ]]; then
|
||||
pavucontrol
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$option_1)
|
||||
run_cmd --opt1
|
||||
;;
|
||||
$option_2)
|
||||
run_cmd --opt2
|
||||
;;
|
||||
$option_3)
|
||||
run_cmd --opt3
|
||||
;;
|
||||
$option_4)
|
||||
run_cmd --opt4
|
||||
;;
|
||||
$option_5)
|
||||
run_cmd --opt5
|
||||
;;
|
||||
esac
|
||||
|
18
eggs/rofi/.config/rofi/applets/shared/colors.rasi
Normal file
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
*
|
||||
* Available Colors Schemes
|
||||
*
|
||||
* adapta catppuccin everforest navy paper
|
||||
* arc cyberpunk gruvbox nord solarized
|
||||
* black dracula lovelace onedark yousai
|
||||
*
|
||||
**/
|
||||
|
||||
/* Import color-scheme from `colors` directory */
|
||||
|
||||
@import "~/.config/rofi/colors/onedark.rasi"
|
12
eggs/rofi/.config/rofi/applets/shared/fonts.rasi
Normal file
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Fonts
|
||||
*
|
||||
**/
|
||||
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
}
|
4
eggs/rofi/.config/rofi/applets/shared/theme.bash
Executable file
|
@ -0,0 +1,4 @@
|
|||
## Current Theme
|
||||
|
||||
type="$HOME/.config/rofi/applets/type-1"
|
||||
style='style-1.rasi'
|
152
eggs/rofi/.config/rofi/applets/type-1/style-1.rasi
Normal file
|
@ -0,0 +1,152 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=NO
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 400px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 1px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 0px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 6;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 5px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
152
eggs/rofi/.config/rofi/applets/type-1/style-2.rasi
Normal file
|
@ -0,0 +1,152 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=NO
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 400px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 1px solid;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 12px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 12px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 6;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 5px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
152
eggs/rofi/.config/rofi/applets/type-1/style-3.rasi
Normal file
|
@ -0,0 +1,152 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=NO
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 400px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 1px solid;
|
||||
border-radius: 30px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 100%;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 100%;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 6;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 5px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
153
eggs/rofi/.config/rofi/applets/type-2/style-1.rasi
Normal file
|
@ -0,0 +1,153 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 800px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 30px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 0px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 30px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 28";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
153
eggs/rofi/.config/rofi/applets/type-2/style-2.rasi
Normal file
|
@ -0,0 +1,153 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 800px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 30px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 12px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 12px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 30px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 28";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
153
eggs/rofi/.config/rofi/applets/type-2/style-3.rasi
Normal file
|
@ -0,0 +1,153 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 800px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 30px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 30px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 100%;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 100%;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 30px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 28";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
153
eggs/rofi/.config/rofi/applets/type-3/style-1.rasi
Normal file
|
@ -0,0 +1,153 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: east;
|
||||
anchor: east;
|
||||
fullscreen: false;
|
||||
width: 120px;
|
||||
x-offset: -20px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 15px;
|
||||
background-color: transparent;
|
||||
children: [ "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 0px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 23px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 24";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
153
eggs/rofi/.config/rofi/applets/type-3/style-2.rasi
Normal file
|
@ -0,0 +1,153 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: east;
|
||||
anchor: east;
|
||||
fullscreen: false;
|
||||
width: 120px;
|
||||
x-offset: -20px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 10px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 15px;
|
||||
background-color: transparent;
|
||||
children: [ "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 0px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 23px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 10px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 24";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
153
eggs/rofi/.config/rofi/applets/type-3/style-3.rasi
Normal file
|
@ -0,0 +1,153 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "../shared/colors.rasi"
|
||||
@import "../shared/fonts.rasi"
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: east;
|
||||
anchor: east;
|
||||
fullscreen: false;
|
||||
width: 120px;
|
||||
x-offset: -20px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 15px;
|
||||
background-color: transparent;
|
||||
children: [ "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 0px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 23px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 24";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
164
eggs/rofi/.config/rofi/applets/type-4/style-1.rasi
Normal file
|
@ -0,0 +1,164 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
background: #11092D;
|
||||
background-alt: #281657;
|
||||
foreground: #FFFFFF;
|
||||
selected: #DF5296;
|
||||
active: #6E77FF;
|
||||
urgent: #8E3596;
|
||||
}
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 800px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 20px;
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 25px;
|
||||
padding: 100px 50px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
background-image: url("~/.config/rofi/images/a.png", width);
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "prompt"];
|
||||
}
|
||||
|
||||
dummy{
|
||||
background-color: transparent;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 0px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 20px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 30px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 28";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
164
eggs/rofi/.config/rofi/applets/type-4/style-2.rasi
Normal file
|
@ -0,0 +1,164 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
background: #2D1B14;
|
||||
background-alt: #462D23;
|
||||
foreground: #FFFFFF;
|
||||
selected: #E25F3E;
|
||||
active: #716251;
|
||||
urgent: #934A1C;
|
||||
}
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 800px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 20px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 20px;
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "listview", "message" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 25px;
|
||||
padding: 100px 50px;
|
||||
border: 0px;
|
||||
border-radius: 20px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
background-image: url("~/.config/rofi/images/d.png", width);
|
||||
text-color: @foreground;
|
||||
children: [ "dummy", "textbox-prompt-colon", "prompt", "dummy"];
|
||||
}
|
||||
|
||||
dummy{
|
||||
background-color: transparent;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 10px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 10px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 20px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 30px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 20px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 28";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
164
eggs/rofi/.config/rofi/applets/type-4/style-3.rasi
Normal file
|
@ -0,0 +1,164 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
background: #131D1F;
|
||||
background-alt: #183A43;
|
||||
foreground: #FFFFFF;
|
||||
selected: #649094;
|
||||
active: #E9CC9D;
|
||||
urgent: #FEA861;
|
||||
}
|
||||
|
||||
/*
|
||||
USE_ICON=YES
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 800px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 50px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 20px;
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 25px;
|
||||
padding: 100px 50px;
|
||||
border: 0px;
|
||||
border-radius: 40px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
background-image: url("~/.config/rofi/images/i.jpg", width);
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", "dummy", "prompt"];
|
||||
}
|
||||
|
||||
dummy{
|
||||
background-color: transparent;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 100%;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 100%;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 20px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 30px 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
font: "feather 28";
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background-alt);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
166
eggs/rofi/.config/rofi/applets/type-5/style-1.rasi
Normal file
|
@ -0,0 +1,166 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
background: #231419;
|
||||
background-alt: #2D1E23;
|
||||
foreground: #FFFFFF;
|
||||
selected: #426647;
|
||||
active: #2E3F34;
|
||||
urgent: #D08261;
|
||||
}
|
||||
|
||||
/*
|
||||
USE_ICON=NO
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 600px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 30px;
|
||||
background-color: transparent;
|
||||
orientation: horizontal;
|
||||
children: [ "imagebox", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Imagebox -----*****/
|
||||
imagebox {
|
||||
background-color: transparent;
|
||||
background-image: url("~/.config/rofi/images/e.jpg", height);
|
||||
children: [ "dummy", "inputbar", "dummy" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "dummy", "textbox-prompt-colon", "prompt", "dummy"];
|
||||
}
|
||||
|
||||
dummy{
|
||||
background-color: transparent;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 0px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @active;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 5px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(foreground);
|
||||
}
|
167
eggs/rofi/.config/rofi/applets/type-5/style-2.rasi
Normal file
|
@ -0,0 +1,167 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
background: #11092D;
|
||||
background-alt: #281657;
|
||||
foreground: #FFFFFF;
|
||||
selected: #DF5296;
|
||||
active: #6E77FF;
|
||||
urgent: #8E3596;
|
||||
}
|
||||
|
||||
/*
|
||||
USE_ICON=NO
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 600px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 20px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 30px;
|
||||
background-color: transparent;
|
||||
orientation: horizontal;
|
||||
children: [ "imagebox", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Imagebox -----*****/
|
||||
imagebox {
|
||||
border-radius: 20px;
|
||||
background-color: transparent;
|
||||
background-image: url("~/.config/rofi/images/j.jpg", height);
|
||||
children: [ "dummy", "inputbar", "dummy" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "dummy", "textbox-prompt-colon", "prompt", "dummy"];
|
||||
}
|
||||
|
||||
dummy{
|
||||
background-color: transparent;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border-radius: 15px;
|
||||
background-color: @urgent;
|
||||
text-color: @foreground;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 15px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 5px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 15px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
176
eggs/rofi/.config/rofi/applets/type-5/style-3.rasi
Normal file
|
@ -0,0 +1,176 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
background: #101010;
|
||||
background-alt: #252525;
|
||||
foreground: #FFFFFF;
|
||||
selected: #505050;
|
||||
active: #909090;
|
||||
urgent: #707070;
|
||||
}
|
||||
|
||||
/*
|
||||
USE_ICON=NO
|
||||
*/
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 600px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 30px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
margin: 0px;
|
||||
padding: 30px;
|
||||
background-color: transparent;
|
||||
orientation: horizontal;
|
||||
children: [ "imagebox", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Imagebox -----*****/
|
||||
imagebox {
|
||||
border: 2px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
background-image: url("~/.config/rofi/images/g.png", height);
|
||||
children: [ "dummy", "inputbar", "dummy" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 15px;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "dummy", "textbox-prompt-colon", "prompt", "dummy"];
|
||||
}
|
||||
|
||||
dummy{
|
||||
background-color: transparent;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 13px;
|
||||
border: 2px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border: 2px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @foreground;
|
||||
background-color: @foreground;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 6;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
|
||||
spacing: 5px;
|
||||
background-color: transparent;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
padding: 11px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: var(background);
|
||||
text-color: var(foreground);
|
||||
}
|
||||
element normal.urgent,
|
||||
element alternate.urgent,
|
||||
element selected.active {
|
||||
background-color: var(urgent);
|
||||
text-color: var(background);
|
||||
}
|
||||
element normal.active,
|
||||
element alternate.active,
|
||||
element selected.urgent {
|
||||
background-color: var(active);
|
||||
text-color: var(background);
|
||||
}
|
||||
element selected.normal {
|
||||
border: 2px solid;
|
||||
border-radius: 100%;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: var(foreground);
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/adapta.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #222D32FF;
|
||||
background-alt: #29353BFF;
|
||||
foreground: #B8C2C6FF;
|
||||
selected: #00BCD4FF;
|
||||
active: #21FF90FF;
|
||||
urgent: #FF4B60FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/arc.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #2F343FFF;
|
||||
background-alt: #383C4AFF;
|
||||
foreground: #BAC5D0FF;
|
||||
selected: #5294E2FF;
|
||||
active: #98C379FF;
|
||||
urgent: #E06B74FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/black.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #000000FF;
|
||||
background-alt: #101010FF;
|
||||
foreground: #FFFFFFFF;
|
||||
selected: #62AEEFFF;
|
||||
active: #98C379FF;
|
||||
urgent: #E06B74FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/catppuccin.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #1E1D2FFF;
|
||||
background-alt: #282839FF;
|
||||
foreground: #D9E0EEFF;
|
||||
selected: #7AA2F7FF;
|
||||
active: #ABE9B3FF;
|
||||
urgent: #F28FADFF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/cyberpunk.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #000B1EFF;
|
||||
background-alt: #0A1528FF;
|
||||
foreground: #0ABDC6FF;
|
||||
selected: #0ABDC6FF;
|
||||
active: #00FF00FF;
|
||||
urgent: #FF0000FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/dracula.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #1E1F29FF;
|
||||
background-alt: #282A36FF;
|
||||
foreground: #FFFFFFFF;
|
||||
selected: #BD93F9FF;
|
||||
active: #50FA7BFF;
|
||||
urgent: #FF5555FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/everforest.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #323D43FF;
|
||||
background-alt: #3C474DFF;
|
||||
foreground: #DAD1BEFF;
|
||||
selected: #7FBBB3FF;
|
||||
active: #A7C080FF;
|
||||
urgent: #E67E80FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/gruvbox.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #1d2021FF;
|
||||
background-alt: #282828FF;
|
||||
foreground: #EBDBB2FF;
|
||||
selected: #83A598FF;
|
||||
active: #B8BB26FF;
|
||||
urgent: #FB4934FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/lovelace.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #1D1F28FF;
|
||||
background-alt: #282A36FF;
|
||||
foreground: #FDFDFDFF;
|
||||
selected: #79E6F3FF;
|
||||
active: #5ADECDFF;
|
||||
urgent: #F37F97FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/navy.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #021B21FF;
|
||||
background-alt: #0C252BFF;
|
||||
foreground: #F2F1B9FF;
|
||||
selected: #44B5B1FF;
|
||||
active: #7CBF9EFF;
|
||||
urgent: #C2454EFF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/nord.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #2E3440FF;
|
||||
background-alt: #383E4AFF;
|
||||
foreground: #E5E9F0FF;
|
||||
selected: #81A1C1FF;
|
||||
active: #A3BE8CFF;
|
||||
urgent: #BF616AFF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/onedark.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #1E2127FF;
|
||||
background-alt: #282B31FF;
|
||||
foreground: #FFFFFFFF;
|
||||
selected: #61AFEFFF;
|
||||
active: #98C379FF;
|
||||
urgent: #E06C75FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/paper.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #F1F1F1FF;
|
||||
background-alt: #E0E0E0FF;
|
||||
foreground: #252525FF;
|
||||
selected: #008EC4FF;
|
||||
active: #10A778FF;
|
||||
urgent: #C30771FF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/solarized.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #002B36FF;
|
||||
background-alt: #073642FF;
|
||||
foreground: #EEE8D5FF;
|
||||
selected: #268BD2FF;
|
||||
active: #859900FF;
|
||||
urgent: #DC322FFF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/tokyonight.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Levi Lacoss (fishyfishfish55)
|
||||
* Github : @fishyfishfish55
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #15161EFF;
|
||||
background-alt: #1A1B26FF;
|
||||
foreground: #C0CAF5FF;
|
||||
selected: #33467CFF;
|
||||
active: #414868FF;
|
||||
urgent: #F7768EFF;
|
||||
}
|
16
eggs/rofi/.config/rofi/colors/yousai.rasi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #F5E7DEFF;
|
||||
background-alt: #EBDCD2FF;
|
||||
foreground: #34302DFF;
|
||||
selected: #D97742FF;
|
||||
active: #BF8F60FF;
|
||||
urgent: #B23636FF;
|
||||
}
|
181
eggs/rofi/.config/rofi/config.rasi
Normal file
|
@ -0,0 +1,181 @@
|
|||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Configuration For Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
configuration {
|
||||
/*---------- General setting ----------*/
|
||||
modi: "drun,run,filebrowser,window";
|
||||
case-sensitive: false;
|
||||
cycle: true;
|
||||
filter: "";
|
||||
scroll-method: 0;
|
||||
normalize-match: true;
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus";
|
||||
/* cache-dir: ;*/
|
||||
steal-focus: false;
|
||||
/* dpi: -1;*/
|
||||
|
||||
/*---------- Matching setting ----------*/
|
||||
matching: "normal";
|
||||
tokenize: true;
|
||||
|
||||
/*---------- SSH settings ----------*/
|
||||
ssh-client: "ssh";
|
||||
ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";
|
||||
parse-hosts: true;
|
||||
parse-known-hosts: true;
|
||||
|
||||
/*---------- Drun settings ----------*/
|
||||
drun-categories: "";
|
||||
drun-match-fields: "name,generic,exec,categories,keywords";
|
||||
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";
|
||||
drun-show-actions: false;
|
||||
drun-url-launcher: "xdg-open";
|
||||
drun-use-desktop-cache: false;
|
||||
drun-reload-desktop-cache: false;
|
||||
drun {
|
||||
/** Parse user desktop files. */
|
||||
parse-user: true;
|
||||
/** Parse system desktop files. */
|
||||
parse-system: true;
|
||||
}
|
||||
|
||||
/*---------- Run settings ----------*/
|
||||
run-command: "{cmd}";
|
||||
run-list-command: "";
|
||||
run-shell-command: "{terminal} -e {cmd}";
|
||||
|
||||
/*---------- Fallback Icon ----------*/
|
||||
run,drun {
|
||||
fallback-icon: "application-x-addon";
|
||||
}
|
||||
|
||||
/*---------- Window switcher settings ----------*/
|
||||
window-match-fields: "title,class,role,name,desktop";
|
||||
window-command: "wmctrl -i -R {window}";
|
||||
window-format: "{w} - {c} - {t:0}";
|
||||
window-thumbnail: false;
|
||||
|
||||
/*---------- Combi settings ----------*/
|
||||
/* combi-modi: "window,run";*/
|
||||
/* combi-hide-mode-prefix: false;*/
|
||||
/* combi-display-format: "{mode} {text}";*/
|
||||
|
||||
/*---------- History and Sorting ----------*/
|
||||
disable-history: false;
|
||||
sorting-method: "normal";
|
||||
max-history-size: 25;
|
||||
|
||||
/*---------- Display setting ----------*/
|
||||
display-window: "Windows";
|
||||
display-windowcd: "Window CD";
|
||||
display-run: "Run";
|
||||
display-ssh: "SSH";
|
||||
display-drun: "Apps";
|
||||
display-combi: "Combi";
|
||||
display-keys: "Keys";
|
||||
display-filebrowser: "Files";
|
||||
|
||||
/*---------- Misc setting ----------*/
|
||||
terminal: "rofi-sensible-terminal";
|
||||
font: "Mono 12";
|
||||
sort: false;
|
||||
threads: 0;
|
||||
click-to-exit: true;
|
||||
/* ignored-prefixes: "";*/
|
||||
/* pid: "/run/user/1000/rofi.pid";*/
|
||||
|
||||
/*---------- File browser settings ----------*/
|
||||
filebrowser {
|
||||
/* directory: "/home";*/
|
||||
directories-first: true;
|
||||
sorting-method: "name";
|
||||
}
|
||||
|
||||
/*---------- Other settings ----------*/
|
||||
timeout {
|
||||
action: "kb-cancel";
|
||||
delay: 0;
|
||||
}
|
||||
|
||||
/*---------- Keybindings ----------*/
|
||||
/*
|
||||
kb-primary-paste: "Control+V,Shift+Insert";
|
||||
kb-secondary-paste: "Control+v,Insert";
|
||||
kb-clear-line: "Control+w";
|
||||
kb-move-front: "Control+a";
|
||||
kb-move-end: "Control+e";
|
||||
kb-move-word-back: "Alt+b,Control+Left";
|
||||
kb-move-word-forward: "Alt+f,Control+Right";
|
||||
kb-move-char-back: "Left,Control+b";
|
||||
kb-move-char-forward: "Right,Control+f";
|
||||
kb-remove-word-back: "Control+Alt+h,Control+BackSpace";
|
||||
kb-remove-word-forward: "Control+Alt+d";
|
||||
kb-remove-char-forward: "Delete,Control+d";
|
||||
kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";
|
||||
kb-remove-to-eol: "Control+k";
|
||||
kb-remove-to-sol: "Control+u";
|
||||
kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";
|
||||
kb-accept-custom: "Control+Return";
|
||||
kb-accept-custom-alt: "Control+Shift+Return";
|
||||
kb-accept-alt: "Shift+Return";
|
||||
kb-delete-entry: "Shift+Delete";
|
||||
kb-mode-next: "Shift+Right,Control+Tab";
|
||||
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";
|
||||
kb-mode-complete: "Control+l";
|
||||
kb-row-left: "Control+Page_Up";
|
||||
kb-row-right: "Control+Page_Down";
|
||||
kb-row-down: "Down,Control+n";
|
||||
kb-page-prev: "Page_Up";
|
||||
kb-page-next: "Page_Down";
|
||||
kb-row-first: "Home,KP_Home";
|
||||
kb-row-last: "End,KP_End";
|
||||
kb-row-select: "Control+space";
|
||||
kb-screenshot: "Alt+S";
|
||||
kb-ellipsize: "Alt+period";
|
||||
kb-toggle-case-sensitivity: "grave,dead_grave";
|
||||
kb-toggle-sort: "Alt+grave";
|
||||
kb-cancel: "Escape,Control+g,Control+bracketleft";
|
||||
kb-custom-1: "Alt+1";
|
||||
kb-custom-2: "Alt+2";
|
||||
kb-custom-3: "Alt+3";
|
||||
kb-custom-4: "Alt+4";
|
||||
kb-custom-5: "Alt+5";
|
||||
kb-custom-6: "Alt+6";
|
||||
kb-custom-7: "Alt+7";
|
||||
kb-custom-8: "Alt+8";
|
||||
kb-custom-9: "Alt+9";
|
||||
kb-custom-10: "Alt+0";
|
||||
kb-custom-11: "Alt+exclam";
|
||||
kb-custom-12: "Alt+at";
|
||||
kb-custom-13: "Alt+numbersign";
|
||||
kb-custom-14: "Alt+dollar";
|
||||
kb-custom-15: "Alt+percent";
|
||||
kb-custom-16: "Alt+dead_circumflex";
|
||||
kb-custom-17: "Alt+ampersand";
|
||||
kb-custom-18: "Alt+asterisk";
|
||||
kb-custom-19: "Alt+parenleft";
|
||||
kb-select-1: "Super+1";
|
||||
kb-select-2: "Super+2";
|
||||
kb-select-3: "Super+3";
|
||||
kb-select-4: "Super+4";
|
||||
kb-select-5: "Super+5";
|
||||
kb-select-6: "Super+6";
|
||||
kb-select-7: "Super+7";
|
||||
kb-select-8: "Super+8";
|
||||
kb-select-9: "Super+9";
|
||||
kb-select-10: "Super+0";
|
||||
ml-row-left: "ScrollLeft";
|
||||
ml-row-right: "ScrollRight";
|
||||
ml-row-up: "ScrollUp";
|
||||
ml-row-down: "ScrollDown";
|
||||
me-select-entry: "MousePrimary";
|
||||
me-accept-entry: "MouseDPrimary";
|
||||
me-accept-custom: "Control+MouseDPrimary";
|
||||
*/
|
||||
}
|
BIN
eggs/rofi/.config/rofi/images/a.png
Normal file
After Width: | Height: | Size: 266 KiB |
BIN
eggs/rofi/.config/rofi/images/b.png
Normal file
After Width: | Height: | Size: 197 KiB |
BIN
eggs/rofi/.config/rofi/images/c.png
Normal file
After Width: | Height: | Size: 223 KiB |
BIN
eggs/rofi/.config/rofi/images/d.png
Normal file
After Width: | Height: | Size: 2.4 MiB |
BIN
eggs/rofi/.config/rofi/images/e.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
eggs/rofi/.config/rofi/images/f.png
Normal file
After Width: | Height: | Size: 441 KiB |
BIN
eggs/rofi/.config/rofi/images/flowers-1.png
Normal file
After Width: | Height: | Size: 648 KiB |
BIN
eggs/rofi/.config/rofi/images/flowers-2.png
Normal file
After Width: | Height: | Size: 339 KiB |