wofi: replace rofi with wayland-native wofi
This commit is contained in:
@@ -14,7 +14,7 @@ SFMono also provides icons.
|
||||
+ `waybar`
|
||||
+ `SwayNotificationCenter`
|
||||
+ `wob` (progress bar)
|
||||
+ `rofi` (nice launcher)
|
||||
+ `wofi` (launcher)
|
||||
+ `slurp`, `grim`, `swappy` (screenshot)
|
||||
|
||||
### other (used in scripts)
|
||||
@@ -28,8 +28,7 @@ SFMono also provides icons.
|
||||
### theming stuff
|
||||
+ main bg: #323232
|
||||
+ accent: #93b259
|
||||
+ icons: `Flat-Remix-Blue-Light-darkPanel`
|
||||
+ theme: `Flat-Remix-GTK-Blue-Light-solid`
|
||||
+ rofi: https://github.com/catppuccin/rofi
|
||||
+ change font to `SFMono` and adjust colors
|
||||
+ icons: `Flat-Remix-Green-Light-darkPanel`
|
||||
+ theme: `Flat-Remix-GTK-Green-Light-solid` with adjusted accent
|
||||
+ or `/usr/share/themes/Flat-Remix-Marc`
|
||||
|
||||
|
||||
@@ -94,29 +94,18 @@ input type:keyboard {
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+Backspace kill
|
||||
|
||||
# bemenu
|
||||
set $bemenu bemenu \
|
||||
-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 "/"
|
||||
# wofi
|
||||
set $files fd -I "\.pdf$" $HOME | cut -f 4- -d "/"
|
||||
set $lock_screen \
|
||||
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 rofi -show drun
|
||||
#bindsym $mod+p exec $files | $bemenu -l 20 -p 'pdf' -W 0.7 | xargs -d '\n' -r xdg-open
|
||||
bindsym $mod+p exec $files | rofi -dmenu -p ' PDF ' -i | xargs -d '\n' -r xdg-open
|
||||
#bindsym $mod+Ctrl+Backspace exec $lock_screen | $bemenu -p "power" | xargs -d '\n' -r /bin/bash -c
|
||||
bindsym $mod+Ctrl+Backspace exec $lock_screen | rofi -dmenu -p " ⏻ Power " | xargs -d '\n' -r /bin/bash -c
|
||||
bindsym $mod+d exec wofi --show drun -p 'Open application'
|
||||
bindsym $mod+Shift+d exec wofi --show run -p 'dmenu'
|
||||
bindsym $mod+p exec $files \
|
||||
| wofi -d -p 'Search pdfs' -W 70% \
|
||||
| xargs -d '\n' -r xdg-open
|
||||
bindsym $mod+Ctrl+Backspace exec $lock_screen \
|
||||
| wofi -d -p "Power" -L 6 \
|
||||
| xargs -d '\n' -r /bin/bash -c
|
||||
|
||||
# Screenshot
|
||||
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