Skip to content

Commit

Permalink
add basic hyprsunset support
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaw353 committed Nov 13, 2024
1 parent 5a2d69a commit 83491dd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 67 deletions.
61 changes: 0 additions & 61 deletions roles/ags/files/ags/widget/hyprshade/hyprshade.ts

This file was deleted.

4 changes: 2 additions & 2 deletions roles/ags/files/ags/widget/keybinds/data/shortcuts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TODO: Update keybindings
TODO: Update keybindings
// COLUMN1
const column1 = [
{
Expand Down Expand Up @@ -40,7 +40,6 @@ const column2 = [
{ keys: ['⌘', '+', ''], action: 'Toggle Overview' },
{ keys: ['⌘', '+', '󱊮'], action: 'Toggle Power Menu' },
{ keys: ['⌘', '+', '/'], action: 'Toggle Shortcuts Menu' },
// { keys: ['⌘', '+', '󰘶', '+', 'H'], action: 'Toggle Hyprshade Menu' },
],
appeartick: 2
},
Expand All @@ -51,6 +50,7 @@ const column2 = [
{ keys: ['PrtScr'], action: 'Selective Screenshot' },
{ keys: ['󰘴', '+', 'PrtScr'], action: 'Screenshot Full screen' },
{ keys: ['󱊶'], action: 'Selective Record' },
{ keys: ['⌘', '+', '󰘶', '+', 'N'], action: 'Enable/Disable Hyprsunset'}
],
appeartick: 2
},
Expand Down
1 change: 1 addition & 0 deletions roles/hyprland/files/hypr/config/keybindings/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Super key
$mainMod = SUPER # Sets "Windows" key as main modifier

bind = $mainMod SHIFT, N, exec, bash $hyprland-scripts/hyprsunset.sh
bind = $mainMod, L, exec, $lock_cmd
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod SHIFT, M, exit,
Expand Down
7 changes: 7 additions & 0 deletions roles/hyprland/files/hypr/scripts/hyprsunset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
if `pgrep hyprsunset > /dev/null`; then
pkill hyprsunset
else
hyprsunset -t 5000 &
fi

8 changes: 4 additions & 4 deletions roles/hyprland/tasks/Archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use: "{{ pacman.aur_helper }}"
become: false
loop:
- hyprcursor
- hyprutils-git
- hyprwayland-scanner-git
- hyprlang
- hyprutils
- hyprwayland-scanner
- hyprcursor
- hyprland
- hypridle
- hyprlock
Expand All @@ -24,5 +24,5 @@
- "{{ icons.cursor_icons_package }}"
- "{{ icons.system_icons_package }}"
- hyprpicker
- hyprshade
- hyprsunset-git

0 comments on commit 83491dd

Please sign in to comment.