From 2c0f9603b9c4d392f1fc46dd16fdffdc4c1fa466 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Sun, 7 Jan 2024 19:15:26 +0900 Subject: [PATCH 1/6] Update wlogout logout action --- config/wlogout/layout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/wlogout/layout b/config/wlogout/layout index bbcb625..c873650 100644 --- a/config/wlogout/layout +++ b/config/wlogout/layout @@ -18,7 +18,7 @@ } { "label" : "logout", - "action" : "hyprctl dispatch exit", + "action" : "loginctl kill-session $XDG_SESSION_ID", "text" : "Logout", "keybind" : "e" } From 5c56957b8728d6b5fc513b331d8f1fb7f06f8688 Mon Sep 17 00:00:00 2001 From: PostCyberPunk Date: Sun, 7 Jan 2024 20:07:07 +0800 Subject: [PATCH 2/6] feat(clipboard):Control+Delete to remove entry --- config/hypr/scripts/ClipManager.sh | 31 +++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh index ee6b512..aebf87e 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -1,9 +1,22 @@ -#!/bin/bash -## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## -# Clipboard Manager. This needed cliphist & wl-copy and of course rofi - -if [[ ! $(pidof rofi) ]]; then - cliphist list | rofi -dmenu -config ~/.config/rofi/config-long.rasi | cliphist decode | wl-copy -else - pkill rofi -fi +#!/usr/bin/env bash +# +while [[ true ]]; do + result=$( + cliphist list | rofi -dmenu \ + -kb-custom-1 "Control-Delete" \ + -config ~/.config/rofi/config-long.rasi + ) + exit_state=$? + if [[ $exit_state -eq 1 ]]; then + exit + fi + case "$exit_state" in + 0) + cliphist decode <<<$result | wl-copy + exit + ;; + 10) + cliphist delete <<<$result + ;; + esac +done From ded28ab85a197efbdea865d250593cc402e01f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Mom=C4=8Dilovi=C4=87?= Date: Mon, 8 Jan 2024 21:35:34 +0100 Subject: [PATCH 3/6] fix(waybar): fix cava creating multiple instances WaybarCava was creating a new instance of cava every time it was executed. This happens when waybar is restarted/wallpaper is changed Fixed by killing cava process referencing the same config Fix: #131 --- config/hypr/scripts/WaybarCava.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/hypr/scripts/WaybarCava.sh b/config/hypr/scripts/WaybarCava.sh index 77fce82..711f4c6 100755 --- a/config/hypr/scripts/WaybarCava.sh +++ b/config/hypr/scripts/WaybarCava.sh @@ -28,5 +28,8 @@ data_format = ascii ascii_max_range = 7 EOF +# Kill cava if it's already running +pkill -f "cava -p $config_file" + # Read stdout from cava and perform substitution in a single sed command cava -p "$config_file" | sed -u "$dict" From 75e2b0360ba5ab9735711469351029a414950ec4 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Thu, 11 Jan 2024 22:55:03 +0900 Subject: [PATCH 4/6] dropped wlsunset --- config/hypr/UserConfigs/Startup_Apps.conf | 3 --- config/hypr/UserScripts/Sunset.sh | 7 ------- 2 files changed, 10 deletions(-) delete mode 100755 config/hypr/UserScripts/Sunset.sh diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index fb0735d..7f2d600 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -49,6 +49,3 @@ exec-once = swayidle -w timeout 900 '$lock' # xdg-desktop-portal-hyprland (should be auto starting. However, you can force to start) #exec-once = $scriptsDir/PortalHyprland.sh - -# wlsunset - for automatic gamma adjustment. Default is 1900 to 0700 (7pm to 7am). Edit Sunset.sh accordingly -# exec-once = $UserScripts/Sunset.sh \ No newline at end of file diff --git a/config/hypr/UserScripts/Sunset.sh b/config/hypr/UserScripts/Sunset.sh deleted file mode 100755 index 50e386d..0000000 --- a/config/hypr/UserScripts/Sunset.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## - -# wlsunset project page -# https://sr.ht/~kennylevinsen/wlsunset/ - -wlsunset -t 4000 -T 6500 -d 900 -S 07:00 -s 19:00 \ No newline at end of file From 82baf3e31dce375f32678117df1522f4cf9756fc Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Wed, 17 Jan 2024 05:39:46 +0900 Subject: [PATCH 5/6] Update ClipManager.sh --- config/hypr/scripts/ClipManager.sh | 60 +++++++++++++++++++----------- 1 file changed, 39 insertions(+), 21 deletions(-) diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh index aebf87e..682174f 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -1,22 +1,40 @@ -#!/usr/bin/env bash -# -while [[ true ]]; do - result=$( - cliphist list | rofi -dmenu \ - -kb-custom-1 "Control-Delete" \ - -config ~/.config/rofi/config-long.rasi - ) - exit_state=$? - if [[ $exit_state -eq 1 ]]; then - exit - fi - case "$exit_state" in - 0) - cliphist decode <<<$result | wl-copy - exit - ;; - 10) - cliphist delete <<<$result - ;; - esac +#!/bin/bash +## /* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ ## +# Clipboard Manager. This script uses cliphist, rofi, and wl-copy. + +# Actions: +# CTRL Del to delete an entry +# ALT Del to wipe clipboard contents + +while true; do + result=$( + rofi -dmenu \ + -kb-custom-1 "Control-Delete" \ + -kb-custom-2 "Alt-Delete" \ + -config ~/.config/rofi/config-clipboard.rasi < <(cliphist list) + ) + + case "$?" in + 1) + exit + ;; + 0) + case "$result" in + "") + continue + ;; + *) + cliphist decode <<<"$result" | wl-copy + exit + ;; + esac + ;; + 10) + cliphist delete <<<"$result" + ;; + 11) + cliphist wipe + ;; + esac done + From f737762606a3169823240b2657f5430f09d1a11a Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Wed, 17 Jan 2024 05:42:09 +0900 Subject: [PATCH 6/6] added config-clipboard rofi --- config/rofi/config-clipboard.rasi | 217 ++++++++++++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 config/rofi/config-clipboard.rasi diff --git a/config/rofi/config-clipboard.rasi b/config/rofi/config-clipboard.rasi new file mode 100644 index 0000000..d0c9549 --- /dev/null +++ b/config/rofi/config-clipboard.rasi @@ -0,0 +1,217 @@ +/* ---- ๐Ÿ’ซ https://github.com/JaKooLit ๐Ÿ’ซ ---- */ +/* Main Config (long) */ + +/* ---- Configuration ---- */ +configuration { + modi: "drun,run"; + font: "Fira Code SemiBold 14"; + show-icons: true; + display-drun: "๎ฏ†"; + display-run: "๏„ "; + display-filebrowser: "๎ซฐ"; + display-window: "๏‹"; + drun-display-format: "{name}"; + hover-select: true; + me-select-entry: "MouseSecondary"; + me-accept-entry: "MousePrimary"; + window-format: "{w} ยท {c} ยท {t}"; + dpi: 1; + +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Window ---- */ +window { + width: 700px; + /*height: 500px;*/ + x-offset: 0px; + y-offset: 0px; + spacing: 0px; + padding: 2px; + margin: 0px; + border: 2px; + border-color: @active-background; + cursor: "default"; + location: center; + anchor: center; + fullscreen: false; + enabled: true; + border-radius: 12px; + background-image: url("~/.config/rofi/.current_wallpaper", height); + +} + +/* ---- Mainbox ---- */ +mainbox { + enabled: true; + orientation: vertical; + padding: 8px; + background-color: transparent; + children: [ "imagebox" ]; + border-radius: 12px; +} + +/* ---- Imagebox ---- */ +imagebox { + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "message", "listbox"]; +} + +/* ---- Listbox ---- */ +listbox { + spacing: 4px; + orientation: vertical; + children: [ "listview", "mode-switcher" ]; + border-radius: 10px; + border: 1px; + border-color: @active-background; + background-color: @background; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + text-color: @foreground; + spacing: 10px; + padding: 6px; + border-radius: 10px; + border-color: @foreground; + background-color: @background; + children: [ "textbox-prompt-colon", "entry" ]; + border: 1px; + border-color: @active-background; +} + +textbox-prompt-colon { + enabled: true; + expand: false; + str: "๐Ÿ”Ž "; + text-color: inherit; + background-color: transparent; +} + +entry { + enabled: true; + text-color: inherit; + cursor: text; + placeholder: "CTRL Del - Cliphist del || Alt Del - cliphist wipe"; + placeholder-color: inherit; + background-color: transparent; +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 1; + lines: 9; + spacing: 4px; + dynamic: true; + cycle: true; + scrollbar: true; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + background-color: transparent; + border-radius: 10px; +} + +/* ---- Element ---- */ +element { + enabled: true; + padding: 2px; + margin: 2px; + cursor: pointer; + background-color: transparent; + border-radius: 10px; +} + +element normal.normal { + background-color: inherit; + text-color: @foreground; +} + +element normal.urgent { + background-color: inherit; + text-color: @foreground; +} + +element normal.active { + background-color: inherit; + text-color: @foreground; +} + +element selected.normal { + background-color: @selected-normal-background; + text-color: @foreground; +} + +element selected.urgent { + background-color: inherit; + text-color: @foreground; +} + +element selected.active { + background-color: inherit; + text-color: @foreground; +} + +element alternate.normal { + background-color: inherit; + text-color: @foreground; +} + +element alternate.urgent { + background-color: inherit; + text-color: @foreground; +} + +element alternate.active { + background-color: inherit; + text-color: @foreground; +} + +element-icon { + background-color: transparent; + text-color: inherit; + size: 32px; + cursor: inherit; +} + +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +/*****----- Message -----*****/ +message { + background-color: transparent; + border: 0px; + margin: 20px 0px 0px 0px; + padding: 0px; + spacing: 0px; + border-radius: 10px; +} + +textbox { + padding: 6px; + margin: 0px; + border-radius: 0px; + background-color: transparent; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +error-message { + padding: 6px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; +}