diff --git a/hyprland/.config/hypr/conf/keybindings/default.conf b/hyprland/.config/hypr/conf/keybindings/default.conf index 44cb60a..c8d12cd 100644 --- a/hyprland/.config/hypr/conf/keybindings/default.conf +++ b/hyprland/.config/hypr/conf/keybindings/default.conf @@ -1,13 +1,5 @@ # Windows and session -bind = $mainMod, R, exec, $rofi_menu -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, H, togglefloating, bind = $mainMod, C, killactive, bind = $mainMod, P, pseudo, # bind = $mainMod, M, exit, @@ -22,6 +14,17 @@ bind = $mainMod ALT, right, movewindow, r bind = $mainMod ALT, up, movewindow, u 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 bind = $mainMod, PRINT, exec, $screenshot -m window bind = , PRINT, exec, $screenshot -m output diff --git a/hyprland/.config/hypr/hyprland.conf b/hyprland/.config/hypr/hyprland.conf index 3448892..6fb63f6 100644 --- a/hyprland/.config/hypr/hyprland.conf +++ b/hyprland/.config/hypr/hyprland.conf @@ -24,6 +24,7 @@ $volume_control = $scr_path/volume-control.sh $rofi_menu = $scr_path/rofi-launch.sh d $rofi_powermenu = $scr_path/rofi-launch.sh p $rofi_screenshot = $scr_path/rofi-launch.sh s +$rofi_clipboard = $scr_path/rofi-launch.sh c $powermenu = $scr_path/wlogout-toggle.sh # ----------------------------------------------------- diff --git a/hyprland/.config/hypr/scripts/env.sh b/hyprland/.config/hypr/scripts/env.sh index 40796b9..5ad9ece 100755 --- a/hyprland/.config/hypr/scripts/env.sh +++ b/hyprland/.config/hypr/scripts/env.sh @@ -1,10 +1,5 @@ #!/usr/bin/env bash -# rofi env : -export launcher_type="2" -export powermenu_type="2" -export rofi_dir="$HOME/.config/rofi" - # waybar env : export waybar_theme="river" export waybar_dir="$HOME/.config/waybar/$waybar_theme" diff --git a/hyprland/.config/hypr/scripts/rofi-launch.sh b/hyprland/.config/hypr/scripts/rofi-launch.sh index 8c7a980..b8fe76d 100755 --- a/hyprland/.config/hypr/scripts/rofi-launch.sh +++ b/hyprland/.config/hypr/scripts/rofi-launch.sh @@ -1,16 +1,20 @@ #!/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 d) exec $rofi_dir/launchers/type-$launcher_type/launcher.sh ;; p) exec $rofi_dir/applets/bin/powermenu.sh ;; s) exec $rofi_dir/applets/bin/screenshot.sh ;; +c) exec $rofi_dir/applets/bin/clipboard.sh ;; h) echo -e "rofilaunch.sh [action]\nwhere action," echo "d : drun mode" echo "w : window mode" echo "s : screen shot mode," + echo "c : clipboard manager" exit 0 ;; *) ;; diff --git a/hyprland/.config/rofi/applets/bin/clipboard.sh b/hyprland/.config/rofi/applets/bin/clipboard.sh new file mode 100755 index 0000000..6599293 --- /dev/null +++ b/hyprland/.config/rofi/applets/bin/clipboard.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +cliphist list | rofi -dmenu | cliphist decode | wl-copy