aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/mako/config2
-rw-r--r--.config/rofi/catppuccin.rasi28
-rw-r--r--.config/rofi/config.rasi170
-rwxr-xr-x.config/swayimg/key-handler8
4 files changed, 203 insertions, 5 deletions
diff --git a/.config/mako/config b/.config/mako/config
index 517f99b..debf8ca 100644
--- a/.config/mako/config
+++ b/.config/mako/config
@@ -6,7 +6,7 @@ max-history=10
sort=-time
on-button-left=invoke-default-action
-on-button-middle=exec makoctl menu -n $id -- mew -p 'Select action: '
+on-button-middle=exec makoctl menu -n $id -- rofi -dmenu -p 'Select action: '
on-button-right=dismiss
max-visible=10
diff --git a/.config/rofi/catppuccin.rasi b/.config/rofi/catppuccin.rasi
new file mode 100644
index 0000000..733b6c6
--- /dev/null
+++ b/.config/rofi/catppuccin.rasi
@@ -0,0 +1,28 @@
+* {
+ rosewater: #f5e0dc;
+ flamingo: #f2cdcd;
+ pink: #f5c2e7;
+ mauve: #cba6f7;
+ red: #f38ba8;
+ maroon: #eba0ac;
+ peach: #fab387;
+ yellow: #f9e2af;
+ green: #a6e3a1;
+ teal: #94e2d5;
+ sky: #89dceb;
+ sapphire: #74c7ec;
+ blue: #89b4fa;
+ lavender: #b4befe;
+ text: #cdd6f4;
+ subtext1: #bac2de;
+ subtext0: #a6adc8;
+ overlay2: #9399b2;
+ overlay1: #7f849c;
+ overlay0: #6c7086;
+ surface2: #585b70;
+ surface1: #45475a;
+ surface0: #313244;
+ base: #1e1e2e;
+ mantle: #181825;
+ crust: #11111b;
+}
diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi
new file mode 100644
index 0000000..40141e1
--- /dev/null
+++ b/.config/rofi/config.rasi
@@ -0,0 +1,170 @@
+@import "catppuccin"
+
+* {
+ selected-active-foreground: @background;
+ lightfg: @text;
+ separatorcolor: @foreground;
+ urgent-foreground: @red;
+ alternate-urgent-background: @lightbg;
+ lightbg: @mantle;
+ background-color: transparent;
+ border-color: @foreground;
+ normal-background: @background;
+ selected-urgent-background: @red;
+ alternate-active-background: @lightbg;
+ spacing: 2;
+ alternate-normal-foreground: @foreground;
+ urgent-background: @background;
+ selected-normal-foreground: @lightbg;
+ active-foreground: @blue;
+ background: @base;
+ selected-active-background: @blue;
+ active-background: @background;
+ selected-normal-background: @lightfg;
+ alternate-normal-background: @lightbg;
+ foreground: @text;
+ selected-urgent-foreground: @background;
+ normal-foreground: @foreground;
+ alternate-urgent-foreground: @red;
+ alternate-active-foreground: @blue;
+
+}
+element {
+ padding: 1px ;
+ cursor: pointer;
+ spacing: 5px ;
+ border: 0;
+}
+element normal.normal {
+ background-color: @normal-background;
+ text-color: @normal-foreground;
+}
+element normal.urgent {
+ background-color: @urgent-background;
+ text-color: @urgent-foreground;
+}
+element normal.active {
+ background-color: @active-background;
+ text-color: @active-foreground;
+}
+element selected.normal {
+ background-color: @selected-normal-background;
+ text-color: @selected-normal-foreground;
+}
+element selected.urgent {
+ background-color: @selected-urgent-background;
+ text-color: @selected-urgent-foreground;
+}
+element selected.active {
+ background-color: @selected-active-background;
+ text-color: @selected-active-foreground;
+}
+element alternate.normal {
+ background-color: @alternate-normal-background;
+ text-color: @alternate-normal-foreground;
+}
+element alternate.urgent {
+ background-color: @alternate-urgent-background;
+ text-color: @alternate-urgent-foreground;
+}
+element alternate.active {
+ background-color: @alternate-active-background;
+ text-color: @alternate-active-foreground;
+}
+element-text {
+ background-color: transparent;
+ cursor: inherit;
+ highlight: inherit;
+ text-color: inherit;
+}
+element-icon {
+ background-color: transparent;
+ size: 1.0000em ;
+ cursor: inherit;
+ text-color: inherit;
+}
+window {
+ padding: 5;
+ background-color: @background;
+ border: 1;
+}
+mainbox {
+ padding: 0;
+ border: 0;
+}
+message {
+ padding: 1px ;
+ border-color: @separatorcolor;
+ border: 2px dash 0px 0px ;
+}
+textbox {
+ text-color: @foreground;
+}
+listview {
+ padding: 2px 0px 0px ;
+ scrollbar: true;
+ border-color: @separatorcolor;
+ spacing: 2px ;
+ fixed-height: 0;
+ border: 2px dash 0px 0px ;
+}
+scrollbar {
+ width: 4px ;
+ padding: 0;
+ handle-width: 8px ;
+ border: 0;
+ handle-color: @normal-foreground;
+}
+sidebar {
+ border-color: @separatorcolor;
+ border: 2px dash 0px 0px ;
+}
+button {
+ cursor: pointer;
+ spacing: 0;
+ text-color: @normal-foreground;
+}
+button selected {
+ background-color: @selected-normal-background;
+ text-color: @selected-normal-foreground;
+}
+num-filtered-rows {
+ expand: false;
+ text-color: Gray;
+}
+num-rows {
+ expand: false;
+ text-color: Gray;
+}
+textbox-num-sep {
+ expand: false;
+ str: "/";
+ text-color: Gray;
+}
+inputbar {
+ padding: 1px ;
+ spacing: 0px ;
+ text-color: @normal-foreground;
+ children: [ "prompt","textbox-prompt-colon","entry","num-filtered-rows","textbox-num-sep","num-rows","case-indicator" ];
+}
+case-indicator {
+ spacing: 0;
+ text-color: @normal-foreground;
+}
+entry {
+ text-color: @normal-foreground;
+ cursor: text;
+ spacing: 0;
+ placeholder-color: Gray;
+ placeholder: "Type to filter";
+}
+prompt {
+ spacing: 0;
+ text-color: @normal-foreground;
+}
+textbox-prompt-colon {
+ margin: 0px 0.3000em 0.0000em 0.0000em ;
+ expand: false;
+ str: ":";
+ text-color: inherit;
+}
diff --git a/.config/swayimg/key-handler b/.config/swayimg/key-handler
index 67943a9..4e886b2 100755
--- a/.config/swayimg/key-handler
+++ b/.config/swayimg/key-handler
@@ -1,17 +1,17 @@
#!/bin/sh
file=$1
[ -z "$selection" ] && selection=$(printf "w - Set as wallpaper\nc - Copy to dir\nm - Move to dir\nr - Rotate 90°\nR - Rotate -90°\nf - Flip horizontal\ny - Copy filename to clipboard\nY - Copy full path to clipboard\nd - Delete\ng - Open in GIMP\ni - Show media info" |
- mew -i -l 12 -p "Choose action for selected files:")
+ rofi -dmenu -i -l 12 -p "Choose action for selected files:")
action=$(printf "%s" "$selection" | cut -d'-' -f1 | tr -d ' ')
case "$action" in
"w") setbg "$file" & ;;
"c")
- [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | mew -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
+ [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | rofi -dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." &
;;
"m")
- [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | mew -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
+ [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | rofi -dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." &
;;
@@ -28,7 +28,7 @@ file=$1
readlink -f "$file" | tr -d '\n' | wl-copy &&
notify-send "$(readlink -f "$file") copied to clipboard" & ;;
"d")
- [ "$(printf "No\\nYes" | mew -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
+ [ "$(printf "No\\nYes" | rofi -dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
"g") ifinstalled gimp && setsid -f gimp "$file" ;;
"i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: <b>/;s/$/<\/b>/" | rg "<b>")" ;;
*) notify-send "No keybind for that key" ;;