From ea21b561b77c4c4ad6ae5a4aff657385c6e06896 Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Sun, 4 Jun 2023 21:20:23 +0400 Subject: [PATCH] Change Wofi to Rofi Wayland --- etc/sway/config.d/40-autostart-applications.conf | 1 + etc/sway/variables | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/etc/sway/config.d/40-autostart-applications.conf b/etc/sway/config.d/40-autostart-applications.conf index 2617151..a2ddaa6 100644 --- a/etc/sway/config.d/40-autostart-applications.conf +++ b/etc/sway/config.d/40-autostart-applications.conf @@ -19,4 +19,5 @@ exec_always { $watch_playerctl $calendar_daemon $import_gsettings + $update_rofi_theme } diff --git a/etc/sway/variables b/etc/sway/variables index 82e5cd4..8c6849a 100644 --- a/etc/sway/variables +++ b/etc/sway/variables @@ -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'