From 5b77db7c54e7513a324ec92d3303dd2ab0da0d3d Mon Sep 17 00:00:00 2001 From: emily Date: Wed, 27 Mar 2024 23:45:23 +0100 Subject: [PATCH] removed junk --- config/profiles/graphical/default.nix | 1 - .../graphical/files/rofi/confirm.rasi | 143 ------------------ .../graphical/files/rofi/powermenu.rasi | 140 ----------------- .../graphical/files/scripts/rofi_powermenu.sh | 97 ------------ 4 files changed, 381 deletions(-) delete mode 100644 config/profiles/graphical/files/rofi/confirm.rasi delete mode 100644 config/profiles/graphical/files/rofi/powermenu.rasi delete mode 100755 config/profiles/graphical/files/scripts/rofi_powermenu.sh diff --git a/config/profiles/graphical/default.nix b/config/profiles/graphical/default.nix index 31e9985..7b0e405 100644 --- a/config/profiles/graphical/default.nix +++ b/config/profiles/graphical/default.nix @@ -268,7 +268,6 @@ # Rofi "$mod, D, exec, ${rofi} -show drun -theme ~/.config/rofi/launcher.rasi" "$mod, R, exec, ${rofi} -show run -theme ~/.config/rofi/runner.rasi" - "$mod, X, exec, ~/.local/bin/hypr/rofi_powermenu.sh" "$mod, A, exec, ~/.local/bin/hypr/rofi_screenshot.sh" # Misc diff --git a/config/profiles/graphical/files/rofi/confirm.rasi b/config/profiles/graphical/files/rofi/confirm.rasi deleted file mode 100644 index 45dc0ac..0000000 --- a/config/profiles/graphical/files/rofi/confirm.rasi +++ /dev/null @@ -1,143 +0,0 @@ -/*****----- Configuration -----*****/ -configuration { - show-icons: false; -} - -/*****----- Global Properties -----*****/ -@import "shared/colors.rasi" - -/* -USE_ICON=YES -*/ - -/*****----- Main Window -----*****/ -window { - transparency: "real"; - location: center; - anchor: center; - fullscreen: false; - width: 300px; - x-offset: 0px; - y-offset: 0px; - margin: 0px; - padding: 0px; - border: 2px solid; - border-radius: 15px; - border-color: @border; - cursor: "default"; - background-color: @background; -} - -/*****----- Main Box -----*****/ -mainbox { - enabled: true; - spacing: 10px; - margin: 0px; - padding: 30px; - background-color: transparent; - children: [ "inputbar", "message", "listview" ]; -} - -/*****----- Inputbar -----*****/ -inputbar { - enabled: true; - spacing: 10px; - padding: 0px; - border: 0px; - border-radius: 0px; - border-color: @selected; - background-color: transparent; - text-color: @foreground; - children: [ "textbox-prompt-colon", "prompt"]; -} - -textbox-prompt-colon { - enabled: true; - expand: false; - str: ""; - padding: 10px 14px; - border-radius: 0px; - background-color: var(urgent); - text-color: @background; -} -prompt { - enabled: true; - padding: 10px; - border-radius: 0px; - background-color: var(active); - text-color: @background; -} - -/*****----- Message -----*****/ -message { - enabled: true; - margin: 0px; - padding: 10px; - border: 0px solid; - border-radius: 0px; - border-color: @selected; - background-color: @background-alt; - text-color: @foreground; -} -textbox { - background-color: inherit; - text-color: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; -} - -/*****----- Listview -----*****/ -listview { - enabled: true; - columns: 6; - lines: 1; - cycle: true; - scrollbar: false; - layout: vertical; - - spacing: 10px; - background-color: transparent; - cursor: "default"; -} - -/*****----- Elements -----*****/ -element { - enabled: true; - padding: 2px; - border: 0px solid; - border-radius: 0px; - border-color: @selected; - background-color: transparent; - text-color: @foreground; - cursor: pointer; -} -element-text { - font: "feather 20"; - background-color: transparent; - text-color: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.5; -} - -element normal.normal, -element alternate.normal { - background-color: var(background-alt); - text-color: var(foreground); -} -element normal.urgent, -element alternate.urgent, -element selected.active { - background-color: var(urgent); - text-color: var(background); -} -element normal.active, -element alternate.active, -element selected.urgent { - background-color: var(active); - text-color: var(background); -} -element selected.normal { - background-color: var(selected); - text-color: var(background); -} diff --git a/config/profiles/graphical/files/rofi/powermenu.rasi b/config/profiles/graphical/files/rofi/powermenu.rasi deleted file mode 100644 index 8dde209..0000000 --- a/config/profiles/graphical/files/rofi/powermenu.rasi +++ /dev/null @@ -1,140 +0,0 @@ -/*****----- Configuration -----*****/ -configuration { - show-icons: false; -} - -/*****----- Global Properties -----*****/ -@import "shared/colors.rasi" - - -/*****----- Main Window -----*****/ -window { - transparency: "real"; - location: center; - anchor: center; - fullscreen: false; - width: 510px; - x-offset: 0px; - y-offset: 0px; - margin: 0px; - padding: 0px; - border: 2px solid; - border-radius: 15px; - border-color: @border; - cursor: "default"; - background-color: @background; -} - -/*****----- Main Box -----*****/ -mainbox { - enabled: true; - spacing: 10px; - margin: 0px; - padding: 30px; - background-color: transparent; - children: [ "inputbar", "message", "listview" ]; -} - -/*****----- Inputbar -----*****/ -inputbar { - enabled: true; - spacing: 10px; - padding: 0px; - border: 0px; - border-radius: 0px; - border-color: @selected; - background-color: transparent; - text-color: @foreground; - children: [ "textbox-prompt-colon", "prompt"]; -} - -textbox-prompt-colon { - enabled: true; - expand: false; - str: ""; - padding: 10px 14px; - border-radius: 0px; - background-color: var(urgent); - text-color: @background; -} -prompt { - enabled: true; - padding: 10px; - border-radius: 0px; - background-color: var(active); - text-color: @background; -} - -/*****----- Message -----*****/ -message { - enabled: true; - margin: 0px; - padding: 10px; - border: 0px solid; - border-radius: 0px; - border-color: @selected; - background-color: @background-alt; - text-color: @foreground; -} -textbox { - background-color: inherit; - text-color: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; -} - -/*****----- Listview -----*****/ -listview { - enabled: true; - columns: 6; - lines: 1; - cycle: true; - scrollbar: false; - layout: vertical; - - spacing: 10px; - background-color: transparent; - cursor: "default"; -} - -/*****----- Elements -----*****/ -element { - enabled: true; - padding: 15px; - border: 0px solid; - border-radius: 0px; - border-color: @selected; - background-color: transparent; - text-color: @foreground; - cursor: pointer; -} -element-text { - font: "feather 20"; - background-color: transparent; - text-color: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.5; -} - -element normal.normal, -element alternate.normal { - background-color: var(background-alt); - text-color: var(foreground); -} -element normal.urgent, -element alternate.urgent, -element selected.active { - background-color: var(urgent); - text-color: var(background); -} -element normal.active, -element alternate.active, -element selected.urgent { - background-color: var(active); - text-color: var(background); -} -element selected.normal { - background-color: var(selected); - text-color: var(background); -} diff --git a/config/profiles/graphical/files/scripts/rofi_powermenu.sh b/config/profiles/graphical/files/scripts/rofi_powermenu.sh deleted file mode 100755 index 6ff3f88..0000000 --- a/config/profiles/graphical/files/scripts/rofi_powermenu.sh +++ /dev/null @@ -1,97 +0,0 @@ -#!/usr/bin/env bash - -# Import Current Theme -DIR="$HOME/.config/rofi" -RASI="$DIR/powermenu.rasi" -CNFR="$DIR/confirm.rasi" - -# Theme Elements -prompt="`hostname` (`echo $XDG_CURRENT_DESKTOP`)" -mesg="Uptime : `uptime -p | sed -E -e 's/up //g' -e 's/week|weeks/w/g' -e 's/day|days/d/g' -e 's/hour|hours/h/g' -e 's/minute|minutes/m/g'`" - -# Options -option_1="" -option_2="☀" -option_3="" -option_4="" -option_5="↺" -option_6="" -yes='' -no='' - -# Rofi CMD -rofi_cmd() { - rofi -dmenu \ - -p "$prompt" \ - -mesg "$mesg" \ - -markup-rows \ - -theme ${RASI} -} - -# Pass variables to rofi dmenu -run_rofi() { - echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd -} - -# Confirmation CMD -confirm_cmd() { - rofi -dmenu \ - -p 'Confirmation' \ - -mesg 'Are you Sure?' \ - -theme ${CNFR} -} - -# Ask for confirmation -confirm_exit() { - echo -e "$yes\n$no" | confirm_cmd -} - -# Confirm and execute -confirm_run () { - selected="$(confirm_exit)" - if [[ "$selected" == "$yes" ]]; then - ${1} && ${2} && ${3} && ${4} - else - exit - fi -} - -# Execute Command -run_cmd() { - if [[ "$1" == '--opt1' ]]; then - swaylock -f -i ~/.config/hypr/wallpapers/lockscreen.png - elif [[ "$1" == '--opt2' ]]; then - confirm_run 'hyprctl dispatch exit 0' - elif [[ "$1" == '--opt3' ]]; then - confirm_run 'pulsemixer --mute' 'swaylock -f -i ~/.config/hypr/wallpapers/lockscreen.png' 'systemctl suspend' #"$DIR/scripts/lockscreen" - elif [[ "$1" == '--opt4' ]]; then - confirm_run 'systemctl hibernate' - elif [[ "$1" == '--opt5' ]]; then - confirm_run 'systemctl reboot' - elif [[ "$1" == '--opt6' ]]; then - confirm_run 'systemctl poweroff' - fi -} - -# Actions -chosen="$(run_rofi)" -case ${chosen} in - $option_1) - run_cmd --opt1 - ;; - $option_2) - run_cmd --opt2 - ;; - $option_3) - run_cmd --opt3 - ;; - $option_4) - run_cmd --opt4 - ;; - $option_5) - run_cmd --opt5 - ;; - $option_6) - run_cmd --opt6 - ;; -esac