remove rofi from debian and replace with fzf

This commit is contained in:
Tyler Starr 2023-07-04 11:17:40 -07:00
parent 64077ffc51
commit 07ed2c6a84
6 changed files with 58 additions and 38 deletions

View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# ⠀⠀⠀⠀⠀⠀⠀⢠⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀
#⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀
#⠀⠀⠀⠀⠀⠀⠀⠀⣼⡏⠸⣧⠀⠀⠀⠀⠀⠀⠀⠀
#⠠⢤⣤⣤⣤⣤⣤⣴⡿⠀⠀⢻⣦⣤⣤⣤⣤⣤⡤⠄ Tyler Starr (starr-dusT)
#⠀⠀⠙⠻⣦⣄⠀⠀⠀⠀⠀⠀⠀⠀⣠⣴⠟⠋⠀⠀ https://github.com/starr-dusT/dotfiles
#⠀⠀⠀⠀⠀⠙⣿⡆⠀⠀⠀⠀⠰⣿⠋⠀⠀⠀⠀⠀ https://tstarr.us
#⠀⠀⠀⠀⠀⢰⡟⠀⣀⣴⣦⣀⠀⢻⡆⠀⠀⠀⠀⠀
#⠀⠀⠀⠀⢀⣾⣧⡾⠛⠁⠈⠙⠷⣼⣿⡀⠀⠀⠀⠀
# ⠀⠀⠀⡸⠟⠁⠀⠀⠀⠀⠀⠀⠈⠛⢧⠀⠀⠀⠀
#
# Launch applications with fzf.
desktop_file() {
find /usr/share/applications -name "*.desktop" 2>/dev/null \
&& find /usr/local/share/applications -name "*.desktop" 2>/dev/null \
&& find "$HOME/.local/share/applications" -name "*.desktop" 2>/dev/null \
&& find /var/lib/flatpak/exports/share/applications -name "*.desktop" 2>/dev/null \
&& find "$HOME/.local/share/flatpak/exports/share/applications" -name "*.desktop" 2>/dev/null
}
selected="$(desktop_file | sed 's/.desktop//g' | sort | fzf -e -i -m --reverse --delimiter / --with-nth -1)"
[ -z "$selected" ] && exit
cd || return
echo "$selected" | while read -r line ; do setsid gio launch "$line".desktop ; done

View File

@ -106,6 +106,7 @@ for_window [app_id="file"] floating enable, \
assign [class="Steam"] "1:game"
for_window [class="Steam"] move container to workspace "1:game"
for_window [class="discord"] move container to workspace $tag8
for_window [title="launcher"] floating enable
#-------------------------------------------------------------------------------
#----- KEY BINDINGS
@ -124,7 +125,6 @@ bindsym $mod+x mode utility
mode utility {
bindsym q exit
bindsym r reload
bindsym p exec "rofi-rbw", $e
bindsym g exec "~/.config/sway/scripts/gamemode.sh", $e
bindsym Escape mode default
}
@ -186,11 +186,11 @@ bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# [o]pen applications
bindsym $mod+Return exec alacritty
bindsym $mod+a mode rofi
mode rofi {
bindsym r exec rofi -show drun -show-icons, $e
bindsym w exec rofi -show window -show-icons, $e
bindsym e exec rofi -modi emoji -show emoji, $e
bindsym $mod+a mode launcher
mode launcher {
bindsym r exec alacritty --title launcher -e /home/{{ .user }}/bin/linux-app-launcher, $e
#bindsym w exec rofi -show window -show-icons, $e
#bindsym e exec rofi -modi emoji -show emoji, $e
bindsym Escape mode default
}
bindsym $mod+o mode open

View File

@ -1,3 +1 @@
# TODO
- Add nmcli pivpn file for wireguard with encrypt with chezmoi
- Create way to activate/deactivate VPN (with notification) in sway

View File

@ -1,6 +1,5 @@
# Ansible Galaxy Roles
roles:
- src: https://github.com/starr-dusT/ansible-role-customize-gnome
- src: https://github.com/starr-dusT/ansible-rustup
collections:
- name: community.general

View File

@ -1,30 +1,30 @@
#- name: Set desktop files to hide
# include_tasks: ../include/hide-desktop.yml
# loop:
# - /usr/share/applications/wine-winhelp.desktop
# - /usr/share/applications/wine-mime-msi.desktop
# - /usr/share/applications/wine-notepad.desktop
# - /usr/share/applications/wine-oleview.desktop
# - /usr/share/applications/wine-regedit.desktop
# - /usr/share/applications/wine-uninstaller.desktop
# - /usr/share/applications/wine-wineboot.desktop
# - /usr/share/applications/wine-winecfg.desktop
# - /usr/share/applications/wine-winefile.desktop
# - /usr/share/applications/wine-winemine.desktop
# - /usr/share/applications/wine-wordpad.desktop
# - /usr/share/applications/vifm.desktop
# - /usr/share/applications/dosbox-staging.desktop
# - /usr/share/applications/nvim.desktop
# - /usr/share/applications/syncthing-start.desktop
# - /usr/share/applications/syncthing-ui.desktop
# - /usr/share/applications/cgnscalc.desktop
# - /usr/share/applications/cgnsnodes.desktop
# - /usr/share/applications/cgnsplot.desktop
# - /usr/share/applications/cgnsview.desktop
# - /usr/share/applications/qt5-assistant.desktop
# - /usr/share/applications/opencascade-draw.desktop
# - /usr/share/applications/unitconv.desktop
#
- name: Set desktop files to hide
include_tasks: ../include/hide-desktop.yml
loop:
- /usr/share/applications/wine-winhelp.desktop
- /usr/share/applications/wine-mime-msi.desktop
- /usr/share/applications/wine-notepad.desktop
- /usr/share/applications/wine-oleview.desktop
- /usr/share/applications/wine-regedit.desktop
- /usr/share/applications/wine-uninstaller.desktop
- /usr/share/applications/wine-wineboot.desktop
- /usr/share/applications/wine-winecfg.desktop
- /usr/share/applications/wine-winefile.desktop
- /usr/share/applications/wine-winemine.desktop
- /usr/share/applications/wine-wordpad.desktop
- /usr/share/applications/vifm.desktop
- /usr/share/applications/dosbox-staging.desktop
- /usr/share/applications/nvim.desktop
- /usr/share/applications/syncthing-start.desktop
- /usr/share/applications/syncthing-ui.desktop
- /usr/share/applications/cgnscalc.desktop
- /usr/share/applications/cgnsnodes.desktop
- /usr/share/applications/cgnsplot.desktop
- /usr/share/applications/cgnsview.desktop
- /usr/share/applications/qt5-assistant.desktop
- /usr/share/applications/opencascade-draw.desktop
- /usr/share/applications/unitconv.desktop
#- name: Delete amd vulkan files
# ansible.builtin.file:
# state: absent

View File

@ -2,14 +2,12 @@
apt:
name:
- alacritty
- rofi
- sway
- swayidle
- grim # screenshot functionality
- wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
- mako-notifier # notification system developed by swaywm maintainer
- wdisplays # tool to configure displays
- rofi
- feh
- pcmanfm
- blueman