anki remote and wallpaper

This commit is contained in:
Cy Pokhrel 2024-11-29 14:19:35 -05:00
parent 75ab33c639
commit 86efe3c022
No known key found for this signature in database
GPG key ID: 1200FBE36C2ADE2E
3 changed files with 21 additions and 1 deletions

View file

@ -6,10 +6,12 @@ $clipboard = rofi -show clipboard -show-icons
$emoji = rofi -show emoji $emoji = rofi -show emoji
exec-once = nm-applet & exec-once = nm-applet &
exec-once = blueman-applet &
exec-once = waybar & exec-once = waybar &
exec-once = mako & exec-once = mako &
exec-once = hyprctl setcursor Bibata-Modern-5aa09-v1.0.2-x11 24 exec-once = hyprctl setcursor Bibata-Modern-5aa09-v1.0.2-x11 24
exec-once = wl-paste --watch cliphist store exec-once = wl-paste --watch cliphist store
exec-once = hyprpaper
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24
@ -95,7 +97,7 @@ master {
misc { misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers 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 = ,XF86MonBrightnessUp, exec, brightnessctl s 1%+
bindel = ,XF86MonBrightnessDown, 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 ### ### WINDOWS AND WORKSPACES ###
############################## ##############################

2
hypr/hyprpaper.conf Normal file
View file

@ -0,0 +1,2 @@
preload = ~/wallpapers/purple.jpeg
wallpaper = , ~/wallpapers/purple.jpeg

11
hypr/scripts/anki-remote.sh Executable file
View file

@ -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