rofi config

This commit is contained in:
Thomas
2024-07-31 18:05:42 +02:00
parent 1b42f9f482
commit 756b7d1669
25 changed files with 62 additions and 143 deletions
+5 -7
View File
@@ -48,10 +48,8 @@ $menu = wofi --show drun
# exec-once = nm-applet & # exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox # exec-once = waybar & hyprpaper & firefox
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = ulauncher --no-window
exec-once = discord
exec-once = flatpak run com.core447.StreamController exec-once = flatpak run com.core447.StreamController
exec-once = waybar exec-once = waybar & discord & ulauncher-toggle & openfortigui
# Source a file (multi-file configs) # Source a file (multi-file configs)
@@ -199,11 +197,11 @@ device {
# See https://wiki.hyprland.org/Configuring/Keywords/ # See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier $mainMod = SUPER # Sets "Windows" key as main modifier
bind = CTRL ALT, T, exec, gnome-terminal bind = CTRL ALT, T, exec, kitty
bind = , XF86Calculator, exec, gnome-calculator bind = , XF86Calculator, exec, gnome-calculator
bind = SUPER, space, exec, ulauncher-toggle bind = SUPER, space, exec, ~/.config/rofi/launchers/type-2/launcher.sh
bind =, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- binde =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bind =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ binde =, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
# Screenshots # Screenshots
+1
View File
@@ -14,6 +14,7 @@ general {
background { background {
monitor = monitor =
path = ~/.config/background path = ~/.config/background
color: $base
blur_passes = 0 blur_passes = 0
color = $base color = $base
} }
+8 -8
View File
@@ -10,7 +10,7 @@ source "$HOME"/.config/rofi/applets/shared/theme.bash
theme="$type/$style" theme="$type/$style"
# Volume Info # Volume Info
mixer="`amixer info Master | grep 'Mixer name' | cut -d':' -f2 | tr -d \',' '`" mixer="`pamixer --get-volume`"
speaker="`amixer get Master | tail -n1 | awk -F ' ' '{print $5}' | 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 '[]'`" mic="`amixer get Capture | tail -n1 | awk -F ' ' '{print $5}' | tr -d '[]'`"
@@ -18,7 +18,7 @@ active=""
urgent="" urgent=""
# Speaker Info # Speaker Info
amixer get Master | grep '\[on\]' &>/dev/null pamixer --get-mute | grep 'false' &>/dev/null
if [[ "$?" == 0 ]]; then if [[ "$?" == 0 ]]; then
active="-a 1" active="-a 1"
stext='Unmute' stext='Unmute'
@@ -30,7 +30,7 @@ else
fi fi
# Microphone Info # Microphone Info
amixer get Capture | grep '\[on\]' &>/dev/null pamixer --source 70 --get-mute | grep 'false' &>/dev/null
if [[ "$?" == 0 ]]; then if [[ "$?" == 0 ]]; then
[ -n "$active" ] && active+=",3" || active="-a 3" [ -n "$active" ] && active+=",3" || active="-a 3"
mtext='Unmute' mtext='Unmute'
@@ -100,15 +100,15 @@ run_rofi() {
# Execute Command # Execute Command
run_cmd() { run_cmd() {
if [[ "$1" == '--opt1' ]]; then if [[ "$1" == '--opt1' ]]; then
amixer -Mq set Master,0 5%+ unmute pamixer --increase 5
elif [[ "$1" == '--opt2' ]]; then elif [[ "$1" == '--opt2' ]]; then
amixer set Master toggle pamixer --toggle-mute
elif [[ "$1" == '--opt3' ]]; then elif [[ "$1" == '--opt3' ]]; then
amixer -Mq set Master,0 5%- unmute pamixer --decrease 5
elif [[ "$1" == '--opt4' ]]; then elif [[ "$1" == '--opt4' ]]; then
amixer set Capture toggle pamixer --source 70 --toggle-mute
elif [[ "$1" == '--opt5' ]]; then elif [[ "$1" == '--opt5' ]]; then
pavucontrol pavucontrol-qt
fi fi
} }
+1 -1
View File
@@ -15,4 +15,4 @@
/* Import color-scheme from `colors` directory */ /* Import color-scheme from `colors` directory */
@import "~/.config/rofi/colors/onedark.rasi" @import "~/.config/rofi/colors/catppuccin.rasi"
+2 -2
View File
@@ -1,4 +1,4 @@
## Current Theme ## Current Theme
type="$HOME/.config/rofi/applets/type-1" type="$HOME/.config/rofi/applets/type-3"
style='style-1.rasi' style='style-3.rasi'
+6 -6
View File
@@ -23,16 +23,16 @@ USE_ICON=YES
/*****----- Main Window -----*****/ /*****----- Main Window -----*****/
window { window {
transparency: "real"; transparency: "real";
location: east; location: north East;
anchor: east; anchor: North East;
fullscreen: false; fullscreen: false;
width: 120px; width: 120px;
x-offset: -20px; x-offset: -240px;
y-offset: 0px; y-offset: 10px;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
border: 0px solid; border: 2px;
border-radius: 100%; border-radius: 20px;
border-color: @selected; border-color: @selected;
cursor: "default"; cursor: "default";
background-color: @background; background-color: @background;
+6 -6
View File
@@ -7,10 +7,10 @@
**/ **/
* { * {
background: #1E1D2FFF; background: #24273a;
background-alt: #282839FF; background-alt: #1e2030;
foreground: #D9E0EEFF; foreground: #6c7086;
selected: #7AA2F7FF; selected: #8aadf4;
active: #ABE9B3FF; active: #a6da95;
urgent: #F28FADFF; urgent: #ed8796;
} }
+1 -1
View File
@@ -12,7 +12,7 @@
## style-11 style-12 style-13 style-14 style-15 ## style-11 style-12 style-13 style-14 style-15
dir="$HOME/.config/rofi/launchers/type-2" dir="$HOME/.config/rofi/launchers/type-2"
theme='style-1' theme='style-2'
## Run ## Run
rofi \ rofi \
@@ -15,4 +15,4 @@
/* Import color-scheme from `colors` directory */ /* Import color-scheme from `colors` directory */
@import "~/.config/rofi/colors/onedark.rasi" @import "~/.config/rofi/colors/catppuccin.rasi"
+1 -1
View File
@@ -32,7 +32,7 @@ window {
enabled: true; enabled: true;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
border: 0px solid; border: 2px;
border-radius: 12px; border-radius: 12px;
border-color: @selected; border-color: @selected;
background-color: @background; background-color: @background;
+2 -2
View File
@@ -33,8 +33,8 @@ window {
enabled: true; enabled: true;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
border: 0px solid; border: 2px;
border-radius: 0px; border-radius: 10px;
border-color: @selected; border-color: @selected;
background-color: @background; background-color: @background;
cursor: "default"; cursor: "default";
+5 -1
View File
@@ -12,7 +12,7 @@
# Current Theme # Current Theme
dir="$HOME/.config/rofi/powermenu/type-2" dir="$HOME/.config/rofi/powermenu/type-2"
theme='style-2' theme='style-5'
# CMDs # CMDs
uptime="`uptime -p | sed -e 's/up //g'`" uptime="`uptime -p | sed -e 's/up //g'`"
@@ -79,6 +79,8 @@ run_cmd() {
i3-msg exit i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0 qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]] then
hyprctl dispatch exit
fi fi
fi fi
else else
@@ -100,6 +102,8 @@ case ${chosen} in
betterlockscreen -l betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock i3lock
elif [[ -x 'usr/bin/hyprlock' ]]; then
hyprlock
fi fi
;; ;;
$suspend) $suspend)
+1 -1
View File
@@ -35,7 +35,7 @@ window {
enabled: true; enabled: true;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
border: 0px solid; border: 2px;
border-radius: 20px; border-radius: 20px;
border-color: @selected; border-color: @selected;
cursor: "default"; cursor: "default";
+5 -5
View File
@@ -24,18 +24,18 @@ USE_BUTTONS=YES
window { window {
/* properties for window widget */ /* properties for window widget */
transparency: "real"; transparency: "real";
location: west; location: North East;
anchor: west; anchor: North East;
fullscreen: false; fullscreen: false;
width: 115px; width: 115px;
x-offset: 15px; x-offset: -20px;
y-offset: 0px; y-offset: 20px;
/* properties for all widgets */ /* properties for all widgets */
enabled: true; enabled: true;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
border: 0px solid; border: 2px;
border-radius: 12px; border-radius: 12px;
border-color: @selected; border-color: @selected;
cursor: "default"; cursor: "default";
-3
View File
@@ -1,3 +0,0 @@
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github v-align-middle color-fg-default">
<path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>
</svg>

Before

Width:  |  Height:  |  Size: 778 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

-92
View File
@@ -1,92 +0,0 @@
{
"9b80b7e5-47eb-49a7-8bac-c6fd3142a56f": {
"id": "9b80b7e5-47eb-49a7-8bac-c6fd3142a56f",
"name": "Google Search",
"keyword": "g",
"cmd": "https://google.com/search?q=%s",
"icon": "/usr/share/ulauncher/media/google-search-icon.png",
"is_default_search": true,
"run_without_argument": false,
"added": 1715682015.259564
},
"c8850e61-36dd-4a75-a8a9-dd8dceb8816b": {
"id": "c8850e61-36dd-4a75-a8a9-dd8dceb8816b",
"name": "Stack Overflow",
"keyword": "so",
"cmd": "http://stackoverflow.com/search?q=%s",
"icon": "/usr/share/ulauncher/media/stackoverflow-icon.svg",
"is_default_search": true,
"run_without_argument": false,
"added": 1715682015.2595758
},
"3bb97c5d-c7e3-4634-b85b-e319a31509c2": {
"id": "3bb97c5d-c7e3-4634-b85b-e319a31509c2",
"name": "Wikipedia",
"keyword": "wiki",
"cmd": "https://en.wikipedia.org/wiki/%s",
"icon": "/usr/share/ulauncher/media/wikipedia-icon.png",
"is_default_search": true,
"run_without_argument": false,
"added": 1715682015.2595844
},
"b8e8c706-9baa-4edd-90c3-48ab6944af9a": {
"id": "b8e8c706-9baa-4edd-90c3-48ab6944af9a",
"name": "JWT",
"keyword": "jwt",
"cmd": "https://jwt.io/?value=%s",
"icon": "~/.config/ulauncher/icons/jwt.png",
"is_default_search": false,
"run_without_argument": false,
"added": 1716898874.1727827
},
"1b357b06-bb9a-4c05-b4dc-06233bfe2fb9": {
"id": "1b357b06-bb9a-4c05-b4dc-06233bfe2fb9",
"name": "Google Traduction",
"keyword": "trad",
"cmd": "https://translate.google.com/?source=osdd&sl=auto&tl=auto&text=%s&op=translate",
"icon": "~/.config/ulauncher/icons/trad.png",
"is_default_search": false,
"run_without_argument": false,
"added": 1716899083.7887938
},
"371c5245-1024-4ffc-b73d-aba9aa344301": {
"id": "371c5245-1024-4ffc-b73d-aba9aa344301",
"name": "Github",
"keyword": "gh",
"cmd": "https://github.com/search?q=%s&type=repositories",
"icon": "~/.config/ulauncher/icons/github.svg",
"is_default_search": false,
"run_without_argument": false,
"added": 1716899164.2462764
},
"b1230a2c-f5e8-45e3-b483-5e01998b5b48": {
"id": "b1230a2c-f5e8-45e3-b483-5e01998b5b48",
"name": "GitLab",
"keyword": "gitlab",
"cmd": "https://gitlab.com/search?search=%s",
"icon": "~/.config/ulauncher/icons/gitlab.png",
"is_default_search": false,
"run_without_argument": false,
"added": 1716899189.6742277
},
"a075f00d-f362-48b0-bf4d-3e9415ae9638": {
"id": "a075f00d-f362-48b0-bf4d-3e9415ae9638",
"name": "Maps",
"keyword": "maps",
"cmd": "https://www.google.com/maps/search/%s/",
"icon": "~/.config/ulauncher/icons/maps.png",
"is_default_search": false,
"run_without_argument": false,
"added": 1716899213.7532995
},
"a92332f1-9fe5-4dc9-9ba0-e33a9b6581f9": {
"id": "a92332f1-9fe5-4dc9-9ba0-e33a9b6581f9",
"name": "Vuetify",
"keyword": "vue",
"cmd": "https://v2.vuetifyjs.com/?search=%s",
"icon": "~/.config/ulauncher/icons/vuetify.png",
"is_default_search": false,
"run_without_argument": false,
"added": 1716899258.0429287
}
}
+2 -2
View File
@@ -40,7 +40,7 @@
"format-icons": { "format-icons": {
"default": ["", "", " "] "default": ["", "", " "]
}, },
"on-click": "pavucontrol-qt" "on-click": "~/.config/rofi/applets/bin/volume.sh"
}, },
"custom/tomato": { "custom/tomato": {
"format": "{}", "format": "{}",
@@ -52,7 +52,7 @@
}, },
"custom/lock": { "custom/lock": {
"tooltip": false, "tooltip": false,
"on-click": "sh -c '(sleep 0.5s; swaylock --grace 0)' & disown", "on-click": "hyprlock",
"format": "", "format": "",
}, },
"custom/power": { "custom/power": {
+12 -2
View File
@@ -1,8 +1,8 @@
@import "macchiato.css"; @import "macchiato.css";
* { * {
font-family: FantasqueSansM Nerd Font; font-family: JetBrainsMono Nerd Font;
font-size: 17px; font-size: 16px;
min-height: 0; min-height: 0;
} }
@@ -17,6 +17,7 @@
margin: 5px; margin: 5px;
background-color: @surface0; background-color: @surface0;
margin-left: 1rem; margin-left: 1rem;
padding-right: 0.2rem;
} }
#workspaces button { #workspaces button {
@@ -74,12 +75,21 @@
color: @lavender; color: @lavender;
} }
#custom-lock:hover {
color: @sapphire;
}
#custom-power { #custom-power {
margin-right: 1rem; margin-right: 1rem;
padding-right: 1.2rem;
border-radius: 0px 1rem 1rem 0px; border-radius: 0px 1rem 1rem 0px;
color: @red; color: @red;
} }
#custom-power:hover {
color: @peach;
}
#tray { #tray {
margin-right: 1rem; margin-right: 1rem;
border-radius: 1rem; border-radius: 1rem;
+1
View File
@@ -117,6 +117,7 @@ alias vim=nvim
alias devbox_db="cd /home/thomas/workspace/mylab-dev-docker && make importDB" alias devbox_db="cd /home/thomas/workspace/mylab-dev-docker && make importDB"
alias devbox_bash="cd /home/thomas/workspace/mylab-dev-docker && make bash" alias devbox_bash="cd /home/thomas/workspace/mylab-dev-docker && make bash"
alias devbox_boot="cd /home/thomas/workspace/mylab-dev-docker && make up" alias devbox_boot="cd /home/thomas/workspace/mylab-dev-docker && make up"
alias ssh="kitty +kitten ssh"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh