Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions Configs/.config/hypr/workflows/gaming.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,27 @@ decoration {
shadow {
enabled = 0
}
blur:enabled = 0
blur {
enabled = 0
xray = 1
}
rounding = 0
active_opacity = 1
inactive_opacity = 1
fullscreen_opacity = 1
}

general {
gaps_in = 0
gaps_out = 0
border_size = 1
gaps_in = 0
gaps_out = 0
border_size = 1
}

animations:enabled = 0

layerrule = noanim,waybar
layerrule = noanim,swaync-notification-window
layerrule = noanim,swww-daemon
layerrule = noanim,rofi

windowrule = opaque,class:(.*) # ensure all windows are opaque
13 changes: 8 additions & 5 deletions Configs/.config/hypr/workflows/powersaver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@ decoration {
shadow {
enabled = 0
}
blur:enabled = 0
blur {
enabled = 0
xray = 1
}
rounding = 0
active_opacity = 1
inactive_opacity = 1
fullscreen_opacity = 1
fullscreen_opacity = 1
}

general {
gaps_in = 0
gaps_out = 0
border_size = 1
gaps_in = 0
gaps_out = 0
border_size = 1
}

animations:enabled = 0
misc:vfr = true

layerrule = noanim,waybar
layerrule = noanim,swaync-notification-window
Expand Down
6 changes: 3 additions & 3 deletions Configs/.config/hypr/workflows/snappy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ rounding = 0
}

general {
gaps_in = 0
gaps_out = 0
border_size = 1
gaps_in = 0
gaps_out = 0
border_size = 1
}

animations:enabled = 0
3 changes: 1 addition & 2 deletions Configs/.local/lib/hyde/gamemode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "$HYPRGAMEMODE" = 1 ]; then
hyprctl -q --batch "\
keyword animations:enabled 0;\
keyword decoration:shadow:enabled 0;\
keyword decoration:shadow:xray 1;\
keyword decoration:blur:xray 1;\
keyword decoration:blur:enabled 0;\
keyword general:gaps_in 0;\
keyword general:gaps_out 0;\
Expand All @@ -16,7 +16,6 @@ if [ "$HYPRGAMEMODE" = 1 ]; then
keyword decoration:active_opacity 1 ;\
keyword decoration:inactive_opacity 1 ;\
keyword decoration:fullscreen_opacity 1 ;\
keyword decoration:fullscreen_opacity 1 ;\
keyword layerrule noanim,waybar ;\
keyword layerrule noanim,swaync-notification-window ;\
keyword layerrule noanim,swww-daemon ;\
Expand Down
21 changes: 18 additions & 3 deletions Configs/.local/lib/hyde/workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Usage: $0 [OPTIONS]

Options:
--select | -S Select a workflow from the available options
--set Set the given workflow
--waybar Get workflow info for Waybar
--help | -h Show this help message

Expand All @@ -36,7 +37,7 @@ if [ -z "${*}" ]; then
fi

# Define long options
LONG_OPTS="select,waybar,help"
LONG_OPTS="select,set:,waybar,help"
SHORT_OPTS="Sh"
# Parse options
PARSED=$(getopt --options ${SHORT_OPTS} --longoptions "${LONG_OPTS}" --name "$0" -- "$@")
Expand Down Expand Up @@ -67,7 +68,7 @@ fn_select() {
workflow_icon=$(get_hyprConf "WORKFLOW_ICON" "$workflow_path")
workflow_icon=${workflow_icon:0:1}
workflow_list="${workflow_list}\n${workflow_icon}\t ${workflow_name}"
done < <(find "$workflows_dir" -type f -name "*.conf" 2>/dev/null)
done < <(find "$workflows_dir" -follow -type f -name "*.conf" 2>/dev/null)

# Set rofi scaling
font_scale="${ROFI_WORKFLOW_SCALE}"
Expand Down Expand Up @@ -144,7 +145,7 @@ fn_update() {
#*│ │
#*└────────────────────────────────────────────────────────────────────────────┘

\$WORKFLOW = ${ucrrent_workflow}
\$WORKFLOW = ${current_workflow}
\$WORKFLOW_ICON = ${current_icon}
\$WORKFLOW_DESCRIPTION = ${current_description}
\$WORKFLOWS_PATH = ./workflows/${current_workflow}.conf
Expand Down Expand Up @@ -177,6 +178,20 @@ while true; do
pkill -RTMIN+7 waybar
fi

exit 0
;;
--set)
if [ -z "$2" ]; then
echo "Error: --set requires a workflow name"
exit 1
fi
set_conf "HYPR_WORKFLOW" "$2"
fn_update
# refresh waybar module only if waybar is running
if pgrep -x waybar >/dev/null; then
pkill -RTMIN+7 waybar
fi

exit 0
;;
--help | -h)
Expand Down