From c2c54ed574d00d96a772e096abdfa2da3b60fdd6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 30 Aug 2024 11:06:19 +0200 Subject: hypr: start tracking --- .config/hypr/conf/autostart.conf | 39 +++++++++ .config/hypr/conf/keybinds.conf | 94 ++++++++++++++++++++++ .config/hypr/conf/monitor.conf | 5 ++ .../hypr/conf/sound_brightness_notifications.conf | 9 +++ .config/hypr/conf/windowrules.conf | 67 +++++++++++++++ 5 files changed, 214 insertions(+) create mode 100644 .config/hypr/conf/autostart.conf create mode 100644 .config/hypr/conf/keybinds.conf create mode 100644 .config/hypr/conf/monitor.conf create mode 100644 .config/hypr/conf/sound_brightness_notifications.conf create mode 100644 .config/hypr/conf/windowrules.conf (limited to '.config/hypr/conf') diff --git a/.config/hypr/conf/autostart.conf b/.config/hypr/conf/autostart.conf new file mode 100644 index 0000000..b8792f1 --- /dev/null +++ b/.config/hypr/conf/autostart.conf @@ -0,0 +1,39 @@ +# See https://wiki.hyprland.org/Configuring/Keywords/#executing +# autostart + +# Setup XDG for screen sharing +exec-once = ~/.local/bin/xdg.sh + +# Polkit +exec-once = /usr/lib/polkit-kde-authentication-agent-1 + +# Sway Notification Center +exec-once = swaync + +# Polybar +exec-once = waybar + +# Dropbox +exec-once = nextcloud --background + +# Clipboard Manager +exec-once = copyq --start-server + +# Wallpaper +exec-once = hyprpaper + +# Daily Reminders +exec-once = remind -z -k'notify-send --app-name="remind" --icon="fcitx-remind-active" "⏰ reminder!" "%s" &' ~/.reminders + +# Start playerctl daemon, spotify/youtube etc. binder +exec-once = playerctld daemon + +# For hyprshade scheduling, f.lux +exec-once = dbus-update-activation-environment --systemd HYPRLAND_INSTANCE_SIGNATURE +exec-once = hyprshade auto + +# Network Manager Applet +exec-once = nm-applet + +# Cursor +exec-once = hyprctl setcursor capitaine-cursors-light 28 diff --git a/.config/hypr/conf/keybinds.conf b/.config/hypr/conf/keybinds.conf new file mode 100644 index 0000000..3ea1a83 --- /dev/null +++ b/.config/hypr/conf/keybinds.conf @@ -0,0 +1,94 @@ +# Key bindings + +# See https://wiki.hyprland.org/Configuring/Keywords/ +$mainMod = SUPER +$terminal = kitty +$fileManager = thunar +$menu = tofi-drun | xargs hyprctl dispatch exec -- + +# Applications +bind = $mainMod+SHIFT, code:41, exec, $fileManager # f +bind = $mainMod, RETURN, exec, $terminal +bind = $mainMod, code:71, exec, $HOME/.local/bin/mailsync # f5 +bind = ,code:118, exec, copyq menu # ins +bind = $mainMod, 0, exec, swaync-client --hide-latest +bind = $mainMod+SHIFT, 0, exec, swaync-client -t +bindr = SUPER+SHIFT, escape, exec, $HOME/.local/bin/wpower.sh +bindr = $mainMod, code:42, exec, $HOME/.local/bin/done # g +bindr = $mainMod, code:30, exec, $HOME/.local/bin/bukuadd_c # u +bindr = $mainMod, code:35, exec, $HOME/.local/bin/td # ] + +bind = $mainMod+SHIFT, code:24, killactive, # q +bind = $mainMod, code:55, togglefloating, # v +bind = $mainMod, code:40, exec, $menu # d +bind = $mainMod, code:27, pseudo, # p, dwindle +bind = $mainMod, code:26, togglesplit, # e, dwindle +bind = $mainMod, code:41, fullscreen, 2 # f + +bindl = , XF86AudioPlay, exec, playerctl play-pause +bindl = , XF86AudioNext, exec, playerctl next +bindl = , XF86AudioPrev, exec, playerctl previous + +# Screenshots: +# Super+P: Current window +# Super+Shift+p: Select area +# Super+Alt+p Current output +# Super+Ctrl+p All outputs + +# Optionally, customize slurp's appearance +env = SLURP_ARGS, -d -B F050F022 -b 10101022 -c ff00ff + +bind = ,Print, exec, ~/.local/bin/screenshot.sh +bind = SHIFT, Print, exec, grimblast copy area + +# Move focus +bind = $mainMod, code:43, movefocus, l +bind = $mainMod, code:44, movefocus, d +bind = $mainMod, code:45, movefocus, u +bind = $mainMod, code:46, movefocus, r + +# Move window +bind = $mainMod+SHIFT, code:43, movewindow, l +bind = $mainMod+SHIFT, code:44, movewindow, d +bind = $mainMod+SHIFT, code:45, movewindow, u +bind = $mainMod+SHIFT, code:46, movewindow, r + +# Switch workspaces with mainMod + [0-9] +bind = $mainMod, 1, workspace, 1 +bind = $mainMod, 2, workspace, 2 +bind = $mainMod, 3, workspace, 3 +bind = $mainMod, 4, workspace, 4 +bind = $mainMod, 5, workspace, 5 +bind = $mainMod, 6, workspace, 6 +bind = $mainMod, 7, workspace, 7 +bind = $mainMod, 8, workspace, 8 +bind = $mainMod, 9, workspace, 9 +bind = $mainMod, code:21, workspace, name:browser +bind = $mainMod, code:49, workspace, name:zotero +bind = $mainMod, code:60, workspace, name:desktop +bind = $mainMod, code:59, workspace, name:console +bind = $mainMod, code:58, workspace, name:music + +# Example special workspace (scratchpad) +bind = $mainMod, code:20, togglespecialworkspace, magic # - +bind = $mainMod SHIFT, code:20, movetoworkspace, special:magic + +# Move active window to a workspace with mainMod + SHIFT + [0-9] +bind = $mainMod SHIFT, 1, movetoworkspace, 1 +bind = $mainMod SHIFT, 2, movetoworkspace, 2 +bind = $mainMod SHIFT, 3, movetoworkspace, 3 +bind = $mainMod SHIFT, 4, movetoworkspace, 4 +bind = $mainMod SHIFT, 5, movetoworkspace, 5 +bind = $mainMod SHIFT, 6, movetoworkspace, 6 +bind = $mainMod SHIFT, 7, movetoworkspace, 7 +bind = $mainMod SHIFT, 8, movetoworkspace, 8 +bind = $mainMod SHIFT, 9, movetoworkspace, 9 +bind = $mainMod SHIFT, code:21, movetoworkspace, name:browser +bind = $mainMod SHIFT, code:49, movetoworkspace, name:zotero +bind = $mainMod SHIFT, code:60, movetoworkspace, name:desktop +bind = $mainMod SHIFT, code:59, movetoworkspace, name:console +bind = $mainMod SHIFT, code:58, movetoworkspace, name:music + +# Move/resize windows with mainMod + LMB/RMB and dragging +bindm = $mainMod, mouse:272, movewindow +bindm = $mainMod, mouse:273, resizewindow diff --git a/.config/hypr/conf/monitor.conf b/.config/hypr/conf/monitor.conf new file mode 100644 index 0000000..e04dfb1 --- /dev/null +++ b/.config/hypr/conf/monitor.conf @@ -0,0 +1,5 @@ +# qualle monitor +monitor=eDP-1,highres,auto,1 + +# # autoconfig any additional monitor +monitor=HDMI-A-1,highres,auto-up,1.25 diff --git a/.config/hypr/conf/sound_brightness_notifications.conf b/.config/hypr/conf/sound_brightness_notifications.conf new file mode 100644 index 0000000..e198237 --- /dev/null +++ b/.config/hypr/conf/sound_brightness_notifications.conf @@ -0,0 +1,9 @@ +bind = , XF86MonBrightnessUp, exec, lightctl up +bind = , XF86MonBrightnessDown, exec, lightctl down + +bindl = , XF86AudioMicMute, exec, volumectl -m toggle-mute +bindl = , XF86AudioMute, exec, volumectl toggle-mute +bindle = , XF86AudioRaiseVolume, exec, volumectl -u up +bindle = , XF86AudioLowerVolume, exec, volumectl -u down + +exec-once = avizo-service diff --git a/.config/hypr/conf/windowrules.conf b/.config/hypr/conf/windowrules.conf new file mode 100644 index 0000000..178a1bc --- /dev/null +++ b/.config/hypr/conf/windowrules.conf @@ -0,0 +1,67 @@ +# See https://wiki.hyprland.org/Configuring/Window-Rules/ +windowrulev2 = suppressevent maximize, class:.* + +# polkit auth agent +windowrulev2 = float, class:org.kde.polkit-kde-authentication-agent-1 + +# yad +windowrulev2 = float, class:yad + +# Libre Office +windowrulev2 = size 800 600, class:soffice,title:Export + +# Blueman +windowrulev2 = float,class:^(blueman-manager)$ + +# NetworkManager +windowrulev2 = float,class:^(nm-connection-editor)$ + +# Pavucontrol +windowrulev2 = float,class:^(org.pulseaudio.pavucontrol)$ +windowrulev2 = size 800 600,class:^(org.pulseaudio.pavucontrol)$ + +# copyq +windowrulev2 = float, class:com.github.hluk.copyq +windowrulev2 = noborder, class:com.github.hluk.copyq +windowrulev2 = noblur, class:com.github.hluk.copyq +windowrulev2 = dimaround, class:com.github.hluk.copyq +windowrulev2 = move 70% 10%, class:com.github.hluk.copyq + +# Firefox +windowrulev2 = workspace name:browser silent, class:firefox + +# Browser Picture in Picture +windowrulev2 = float, title:^(Picture-in-Picture)$ +windowrulev2 = pin, title:^(Picture-in-Picture)$ +windowrulev2 = move 72% 40%, title:^(Picture-in-Picture)$ +windowrulev2 = size 520 390, title:^(Picture-in-Picture)$ + +# Discord Popout +windowrulev2 = float, title:^(Discord Popout)$ +windowrulev2 = pin, title:^(Discord Popout)$ +windowrulev2 = move 72% 40%, title:^(Discord Popout)$ +windowrulev2 = size 573 354, title:^(Discord Popout)$ + +# Xwaylandvideobridge +windowrulev2 = opacity 0.0 override,class:^(xwaylandvideobridge)$ +windowrulev2 = noanim,class:^(xwaylandvideobridge)$ +windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ +windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$ +windowrulev2 = noblur,class:^(xwaylandvideobridge)$ + +# Zotero +windowrulev2 = workspace name:zotero silent, class:Zotero + +windowrulev2 = float, class:^(Zotero)$,title:^(Progress)$ +windowrulev2 = noinitialfocus, class:^(Zotero)$,title:^(Progress)$ +windowrulev2 = move 1579 954, class:^(Zotero)$,title:^(Progress)$ +windowrulev2 = size 300 72, class:^(Zotero)$,title:^(Progress)$ +windowrulev2 = size 445 195, class:^(Zotero)$,title:^(New Collection)$ + +# Thunar +windowrulev2 = float, class:^(Thunar)$,title:^(File Operation Progress)$ +windowrulev2 = noinitialfocus, class:^(Thunar)$,title:^(File Operation Progress)$ +windowrulev2 = size 505 100, class:^(Thunar)$,title:^(File Operation Progress)$ + +# Spotify +windowrulev2 = workspace name:music silent, class:^(Spotify)$ -- cgit v1.2.3-70-g09d2