diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 69a6eef..88beee2 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -6,10 +6,12 @@ $clipboard = rofi -show clipboard -show-icons $emoji = rofi -show emoji exec-once = nm-applet & +exec-once = blueman-applet & exec-once = waybar & exec-once = mako & exec-once = hyprctl setcursor Bibata-Modern-5aa09-v1.0.2-x11 24 exec-once = wl-paste --watch cliphist store +exec-once = hyprpaper env = XCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24 @@ -95,7 +97,7 @@ master { misc { force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers - disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :( + disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :( } @@ -197,6 +199,11 @@ bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 1%+ bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 1%- +# anki remote +$remote = ~/.dotfiles/hypr/scripts/anki-remote.sh +bind = , mouse:276, exec, $remote "space" +bind = , mouse:275, exec, $remote + ############################## ### WINDOWS AND WORKSPACES ### ############################## diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf new file mode 100644 index 0000000..d2ffabd --- /dev/null +++ b/hypr/hyprpaper.conf @@ -0,0 +1,2 @@ +preload = ~/wallpapers/purple.jpeg +wallpaper = , ~/wallpapers/purple.jpeg diff --git a/hypr/scripts/anki-remote.sh b/hypr/scripts/anki-remote.sh new file mode 100755 index 0000000..6c96e3c --- /dev/null +++ b/hypr/scripts/anki-remote.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +active_window=$(hyprctl activewindow -j | jq -r ".class") + +if [ "$active_window" = "anki" ]; then + if [ "$1" = "space" ]; then + wtype " " + else + wtype "1" + fi +fi