Change Wofi to Rofi Wayland

This commit is contained in:
Aleksey Samoilov 2023-06-04 21:20:23 +04:00
parent 8143fa0a07
commit ea21b561b7
2 changed files with 10 additions and 3 deletions

View file

@ -19,4 +19,5 @@ exec_always {
$watch_playerctl
$calendar_daemon
$import_gsettings
$update_rofi_theme
}

View file

@ -15,8 +15,11 @@ set $term_cwd $term -D "$(/usr/share/sway/scripts/swaycwd.sh 2>/dev/null || echo
set $term_server foot --server
set $term_float footclient -a floating_shell
# rofi theme
set $rofi_theme "* {lightbg: $base; background: $base; lightfg: $blue; foreground: $text; border-color: $blue;} window {border: 2;}"
# Your preferred application launcher
set $menu wofi --show drun --allow-images --hide-scroll --no-actions
set $menu rofi -show combi -combi-modi "drun,run" -terminal $term -ssh-command "{terminal} {ssh-client} {host} [-p {port}]" -run-shell-command "{terminal} {cmd}" -show-icons -font "$gui-font"
# Add --to-code to bindsym, support for non-latin layouts
set $bindsym bindsym --to-code
@ -41,8 +44,8 @@ set $volume_up pulsemixer --change-volume +5 && $volume_bar
set $volume_mute pulsemixer --toggle-mute && $volume_bar
# clipboard history
set $clipboard cliphist list | wofi --dmenu -p "Select item to copy:" --lines 10 | cliphist decode | wl-copy
set $clipboard-del cliphist list | wofi --dmenu -p "Select item to delete:" --lines 10 | cliphist delete
set $clipboard cliphist list | rofi -dmenu -font "$gui-font" -p "Select item to copy:" -lines 10 -width 35 | cliphist decode | wl-copy
set $clipboard-del cliphist list | rofi -dmenu -font "$gui-font" -p "Select item to delete:" -lines 10 -width 35 | cliphist delete
# Pulseaudo command
set $pulseaudio $term_float pulsemixer
@ -126,6 +129,9 @@ set $spice_vdagent '[ -x "$(command -v spice-vdagent)" ] && spice-vdagent'
# Start playerctl as daemon
set $watch_playerctl '[ -x "$(command -v playerctl)" ] && pkill playerctl; playerctl -a metadata --format \'{{status}} {{title}}\' --follow | while read line; do pkill -RTMIN+5 waybar; done'
# Update Rofi theme based on $rofi_theme colors
set $update_rofi_theme mkdir -p $HOME/.config/rofi/ && echo $rofi_theme > $HOME/.config/rofi/config.rasi
# Start Calcurse calendar as a daemon
set $calendar_daemon 'calcurse --daemon'