Added battery, small fixes, idk
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
current_wid=$(xdo id)
 | 
			
		||||
selection=$(rofi -i -dmenu -theme-str 'listview{columns: 6; lines: 11;}' -theme-str 'window {fullscreen: true;}' $@ < $(dirname $0)/kaomoji.txt)
 | 
			
		||||
selection=$(rofi -i -dmenu -theme-str 'listview{columns: 6; lines: 11;}' -theme-str 'window {fullscreen: true;}' $@ < $(dirname $0)/kaomoji_data.sh)
 | 
			
		||||
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
 | 
			
		||||
echo -n "$kaomoji" | xclip -selection clipboard
 | 
			
		||||
 
 | 
			
		||||
@@ -4,41 +4,48 @@
 | 
			
		||||
power="Power menu"
 | 
			
		||||
ssh="SSH Connect"
 | 
			
		||||
window="Window switcher"
 | 
			
		||||
drun_actions="DRun with actions"
 | 
			
		||||
kaomoji="Kaomoji"
 | 
			
		||||
 | 
			
		||||
# Rofi CMD
 | 
			
		||||
rofi_cmd() {
 | 
			
		||||
	rofi -dmenu \
 | 
			
		||||
		-window-title "Launcher" \
 | 
			
		||||
		-i \
 | 
			
		||||
		-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
 | 
			
		||||
    rofi -dmenu \
 | 
			
		||||
        -window-title "Launcher" \
 | 
			
		||||
        -i \
 | 
			
		||||
        -theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
 | 
			
		||||
        -theme-str 'listview {columns: 1;}'
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Pass variables to rofi dmenu
 | 
			
		||||
run_rofi() {
 | 
			
		||||
	echo -e "$power\n$ssh\n$window\n$kaomoji" | rofi_cmd
 | 
			
		||||
    echo -e "$power\n$ssh\n$window\n$drun_actions\n$kaomoji" | rofi_cmd
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Actions
 | 
			
		||||
chosen="$(run_rofi)"
 | 
			
		||||
case ${chosen} in
 | 
			
		||||
    $power)
 | 
			
		||||
		$HOME/.config/awesome/rofi/powermenu.sh
 | 
			
		||||
        $HOME/.config/awesome/rofi/powermenu.sh
 | 
			
		||||
        ;;
 | 
			
		||||
    $ssh)
 | 
			
		||||
		rofi \
 | 
			
		||||
			-show ssh \
 | 
			
		||||
			-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
 | 
			
		||||
        rofi \
 | 
			
		||||
            -show ssh \
 | 
			
		||||
            -theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
 | 
			
		||||
        ;;
 | 
			
		||||
    $window)
 | 
			
		||||
		rofi \
 | 
			
		||||
			-show window \
 | 
			
		||||
			-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
 | 
			
		||||
        	-theme-str 'listview {columns: 1; lines: 10;}'
 | 
			
		||||
        rofi \
 | 
			
		||||
            -show window \
 | 
			
		||||
            -theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
 | 
			
		||||
            -theme-str 'listview {columns: 1; lines: 10;}'
 | 
			
		||||
        ;;
 | 
			
		||||
    $drun_actions)
 | 
			
		||||
        rofi \
 | 
			
		||||
            -show drun \
 | 
			
		||||
            -theme $HOME/.config/awesome/rofi/launcher.rasi \
 | 
			
		||||
            -drun-show-actions
 | 
			
		||||
        ;;
 | 
			
		||||
    $kaomoji)
 | 
			
		||||
		$HOME/.config/awesome/rofi/kaomoji.sh \
 | 
			
		||||
			-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
 | 
			
		||||
        $HOME/.config/awesome/rofi/kaomoji.sh \
 | 
			
		||||
            -theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
 | 
			
		||||
        ;;
 | 
			
		||||
esac
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user