wofi: replace rofi with wayland-native wofi
This commit is contained in:
@@ -14,7 +14,7 @@ SFMono also provides icons.
|
|||||||
+ `waybar`
|
+ `waybar`
|
||||||
+ `SwayNotificationCenter`
|
+ `SwayNotificationCenter`
|
||||||
+ `wob` (progress bar)
|
+ `wob` (progress bar)
|
||||||
+ `rofi` (nice launcher)
|
+ `wofi` (launcher)
|
||||||
+ `slurp`, `grim`, `swappy` (screenshot)
|
+ `slurp`, `grim`, `swappy` (screenshot)
|
||||||
|
|
||||||
### other (used in scripts)
|
### other (used in scripts)
|
||||||
@@ -28,8 +28,7 @@ SFMono also provides icons.
|
|||||||
### theming stuff
|
### theming stuff
|
||||||
+ main bg: #323232
|
+ main bg: #323232
|
||||||
+ accent: #93b259
|
+ accent: #93b259
|
||||||
+ icons: `Flat-Remix-Blue-Light-darkPanel`
|
+ icons: `Flat-Remix-Green-Light-darkPanel`
|
||||||
+ theme: `Flat-Remix-GTK-Blue-Light-solid`
|
+ theme: `Flat-Remix-GTK-Green-Light-solid` with adjusted accent
|
||||||
+ rofi: https://github.com/catppuccin/rofi
|
+ or `/usr/share/themes/Flat-Remix-Marc`
|
||||||
+ change font to `SFMono` and adjust colors
|
|
||||||
|
|
||||||
|
|||||||
@@ -94,29 +94,18 @@ input type:keyboard {
|
|||||||
# Kill focused window
|
# Kill focused window
|
||||||
bindsym $mod+Shift+Backspace kill
|
bindsym $mod+Shift+Backspace kill
|
||||||
|
|
||||||
# bemenu
|
# wofi
|
||||||
set $bemenu bemenu \
|
set $files fd -I "\.pdf$" $HOME | cut -f 4- -d "/"
|
||||||
-l 7 \
|
|
||||||
--nb "#282828" \
|
|
||||||
--nf "#ffffff" \
|
|
||||||
--ab "#282828" \
|
|
||||||
--af "#ffffff" \
|
|
||||||
--fb "#282828" \
|
|
||||||
--tf "#93b259" \
|
|
||||||
--tb "#282828" \
|
|
||||||
--hf "#ffffff" \
|
|
||||||
--hb "#393939" \
|
|
||||||
--fn "SFMono Nerd Font 13" -i -H 25 -W 0.5
|
|
||||||
|
|
||||||
set $files fd -I "pdf$" $HOME | cut -f 4- -d "/"
|
|
||||||
set $lock_screen \
|
set $lock_screen \
|
||||||
printf "/home/marc/.local/bin/lock.sh\nsystemctl suspend\nswaymsg reload\nshutdown now\nloginctl terminate-user marc"
|
printf "/home/marc/.local/bin/lock.sh\nsystemctl suspend\nswaymsg reload\nshutdown now\nloginctl terminate-user marc"
|
||||||
#bindsym $mod+d exec dmenu_path | $bemenu -p 'run' | xargs swaymsg exec --
|
bindsym $mod+d exec wofi --show drun -p 'Open application'
|
||||||
bindsym $mod+d exec rofi -show drun
|
bindsym $mod+Shift+d exec wofi --show run -p 'dmenu'
|
||||||
#bindsym $mod+p exec $files | $bemenu -l 20 -p 'pdf' -W 0.7 | xargs -d '\n' -r xdg-open
|
bindsym $mod+p exec $files \
|
||||||
bindsym $mod+p exec $files | rofi -dmenu -p ' PDF ' -i | xargs -d '\n' -r xdg-open
|
| wofi -d -p 'Search pdfs' -W 70% \
|
||||||
#bindsym $mod+Ctrl+Backspace exec $lock_screen | $bemenu -p "power" | xargs -d '\n' -r /bin/bash -c
|
| xargs -d '\n' -r xdg-open
|
||||||
bindsym $mod+Ctrl+Backspace exec $lock_screen | rofi -dmenu -p " ⏻ Power " | xargs -d '\n' -r /bin/bash -c
|
bindsym $mod+Ctrl+Backspace exec $lock_screen \
|
||||||
|
| wofi -d -p "Power" -L 6 \
|
||||||
|
| xargs -d '\n' -r /bin/bash -c
|
||||||
|
|
||||||
# Screenshot
|
# Screenshot
|
||||||
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy
|
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy
|
||||||
|
|||||||
7
files/wofi/.config/wofi/config
Normal file
7
files/wofi/.config/wofi/config
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
width=40%
|
||||||
|
allow_images=true
|
||||||
|
insensitive=true
|
||||||
|
no_actions=true
|
||||||
|
|
||||||
|
key_up=Control_L-k
|
||||||
|
key_down=Control_L-j
|
||||||
50
files/wofi/.config/wofi/style.css
Normal file
50
files/wofi/.config/wofi/style.css
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
@define-color bg rgb (50, 50, 50);
|
||||||
|
@define-color fg rgb (255, 255, 255);
|
||||||
|
@define-color green rgb (147, 178, 89);
|
||||||
|
@define-color red rgb (248, 85, 81);
|
||||||
|
@define-color blue rgb (58, 148, 197);
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: "SFMono Nerd Font"
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
margin: 0px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
#input {
|
||||||
|
margin: 5px;
|
||||||
|
border: none;
|
||||||
|
color: @fg;
|
||||||
|
background-color: #44475a;
|
||||||
|
}
|
||||||
|
|
||||||
|
#inner-box {
|
||||||
|
margin: 5px;
|
||||||
|
border: none;
|
||||||
|
background-color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
#outer-box {
|
||||||
|
margin: 5px;
|
||||||
|
border: none;
|
||||||
|
background-color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scroll {
|
||||||
|
margin: 0px;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#text {
|
||||||
|
margin: 5px;
|
||||||
|
border: none;
|
||||||
|
color: @fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
#entry:selected {
|
||||||
|
background-color: @green;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user