Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .config/hypr/default_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"uiScale": 1.0,
"openGuideAtStartup": true,
"topbarHelpIcon": true,
"topbarHide": false,
"workspaceCount": 8,
"wallpaperDir": "",
"language": "us",
Expand All @@ -27,7 +28,7 @@
{"type":"bind","mods":"$mainMod","key":"E","dispatcher":"exec","command":"nautilus"},
{"type":"bind","mods":"$mainMod","key":"R","dispatcher":"exec","command":"bash ~/.config/hypr/scripts/reload.sh"},
{"type":"bind","mods":"$mainMod","key":"C","dispatcher":"exec","command":"~/.config/hypr/scripts/qs_manager.sh toggle clipboard"},
{"type":"bind","mods":"$mainMod","key":"P","dispatcher":"exec","command":"~/.config/hypr/scripts/qs_manager.sh toggle movies"},
{"type":"bind","mods":"$mainMod","key":"M","dispatcher":"exec","command":"bash ~/.config/hypr/scripts/qs_manager.sh toggle movies"},
{"type":"bind","mods":"$mainMod","key":"D","dispatcher":"exec","command":"bash ~/.config/hypr/scripts/qs_manager.sh toggle applauncher"},
{"type":"bind","mods":"$mainMod SHIFT_L","key":"S","dispatcher":"exec","command":"bash ~/.config/hypr/scripts/qs_manager.sh toggle settings"},
{"type":"bind","mods":"$mainMod","key":"Q","dispatcher":"exec","command":"bash ~/.config/hypr/scripts/qs_manager.sh toggle music"},
Expand Down
12 changes: 12 additions & 0 deletions .config/hypr/scripts/qs_manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,18 @@ if [[ "$ACTION" == "open" || "$ACTION" == "toggle" ]]; then
exit 0
fi

if [[ "$TARGET" == "topbar_hide" ]]; then
SETTINGS_FILE="$HOME/.config/hypr/settings.json"
if [ -f "$SETTINGS_FILE" ]; then
CURRENT_VAL=$(jq -r '.topbarHide // false' "$SETTINGS_FILE")
NEW_VAL="true"
[[ "$CURRENT_VAL" == "true" ]] && NEW_VAL="false"
TEMP_FILE=$(mktemp)
jq ".topbarHide = $NEW_VAL" "$SETTINGS_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$SETTINGS_FILE"
fi
exit 0
fi

if [[ "$TARGET" == "wallpaper" ]]; then
handle_wallpaper_prep
CURRENT_SRC=""
Expand Down
Loading