feat: rofi clipboard

This commit is contained in:
hesam-init 2024-02-19 13:32:37 +03:30
parent 4ab5b908cc
commit 5ebce051f4
5 changed files with 21 additions and 15 deletions

View file

@ -1,13 +1,5 @@
# Windows and session # Windows and session
bind = $mainMod, R, exec, $rofi_menu bind = $mainMod, H, togglefloating,
bind = $mainMod, O, exec, $rofi_screenshot
bind = $mainMod, L, exec, $rofi_powermenu
bind = $mainMod, K, exec, $waybar_toggle
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, W, exec, $terminal -e zellij
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, N, exec, $network_manager
bind = $mainMod, V, togglefloating,
bind = $mainMod, C, killactive, bind = $mainMod, C, killactive,
bind = $mainMod, P, pseudo, bind = $mainMod, P, pseudo,
# bind = $mainMod, M, exit, # bind = $mainMod, M, exit,
@ -22,6 +14,17 @@ bind = $mainMod ALT, right, movewindow, r
bind = $mainMod ALT, up, movewindow, u bind = $mainMod ALT, up, movewindow, u
bind = $mainMod ALT, down, movewindow, d bind = $mainMod ALT, down, movewindow, d
# Apps
bind = $mainMod, R, exec, $rofi_menu
bind = $mainMod, O, exec, $rofi_screenshot
bind = $mainMod, L, exec, $rofi_powermenu
bind = $mainMod, V, exec, $rofi_clipboard
bind = $mainMod, K, exec, $waybar_toggle
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, W, exec, $terminal -e zellij
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, N, exec, $network_manager
# Screenshot # Screenshot
bind = $mainMod, PRINT, exec, $screenshot -m window bind = $mainMod, PRINT, exec, $screenshot -m window
bind = , PRINT, exec, $screenshot -m output bind = , PRINT, exec, $screenshot -m output

View file

@ -24,6 +24,7 @@ $volume_control = $scr_path/volume-control.sh
$rofi_menu = $scr_path/rofi-launch.sh d $rofi_menu = $scr_path/rofi-launch.sh d
$rofi_powermenu = $scr_path/rofi-launch.sh p $rofi_powermenu = $scr_path/rofi-launch.sh p
$rofi_screenshot = $scr_path/rofi-launch.sh s $rofi_screenshot = $scr_path/rofi-launch.sh s
$rofi_clipboard = $scr_path/rofi-launch.sh c
$powermenu = $scr_path/wlogout-toggle.sh $powermenu = $scr_path/wlogout-toggle.sh
# ----------------------------------------------------- # -----------------------------------------------------

View file

@ -1,10 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# rofi env :
export launcher_type="2"
export powermenu_type="2"
export rofi_dir="$HOME/.config/rofi"
# waybar env : # waybar env :
export waybar_theme="river" export waybar_theme="river"
export waybar_dir="$HOME/.config/waybar/$waybar_theme" export waybar_dir="$HOME/.config/waybar/$waybar_theme"

View file

@ -1,16 +1,20 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source $HOME/.config/hypr/scripts/env.sh export launcher_type="2"
export powermenu_type="2"
export rofi_dir="$HOME/.config/rofi"
case $1 in case $1 in
d) exec $rofi_dir/launchers/type-$launcher_type/launcher.sh ;; d) exec $rofi_dir/launchers/type-$launcher_type/launcher.sh ;;
p) exec $rofi_dir/applets/bin/powermenu.sh ;; p) exec $rofi_dir/applets/bin/powermenu.sh ;;
s) exec $rofi_dir/applets/bin/screenshot.sh ;; s) exec $rofi_dir/applets/bin/screenshot.sh ;;
c) exec $rofi_dir/applets/bin/clipboard.sh ;;
h) h)
echo -e "rofilaunch.sh [action]\nwhere action," echo -e "rofilaunch.sh [action]\nwhere action,"
echo "d : drun mode" echo "d : drun mode"
echo "w : window mode" echo "w : window mode"
echo "s : screen shot mode," echo "s : screen shot mode,"
echo "c : clipboard manager"
exit 0 exit 0
;; ;;
*) ;; *) ;;

View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
cliphist list | rofi -dmenu | cliphist decode | wl-copy