aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2023-12-23 16:00:51 +0900
committerGitHub <noreply@github.com>2023-12-23 16:00:51 +0900
commit184df5c379ca655355140691608a383643cf2399 (patch)
tree1b1fe7ae786baaf0bc82683b0a6cc29a3159cdcd
parent60d648fc4fc4733b9215ce5c214ea5e0df04881f (diff)
parent687d01c4100f910dbbf18c1aeaceb33db1343a8e (diff)
Merge pull request #96 from JaKooLit/main
update main to development
-rw-r--r--config/hypr/configs/Keybinds.conf3
-rwxr-xr-xconfig/hypr/scripts/ZshChangeTheme.sh38
-rw-r--r--config/rofi/config-zsh-theme.rasi218
-rw-r--r--config/rofi/resolution/1080p/config-zsh-theme.rasi218
-rw-r--r--config/rofi/resolution/1440p/config-zsh-theme.rasi218
-rw-r--r--config/waybar/modules6
6 files changed, 697 insertions, 4 deletions
diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf
index b5f565b3..cc8d9d42 100644
--- a/config/hypr/configs/Keybinds.conf
+++ b/config/hypr/configs/Keybinds.conf
@@ -40,6 +40,7 @@ bind = $mainMod SHIFT, B, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings
bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh
bind = CTRL ALT, W, exec, $scriptsDir/Wallpaper.sh
bind = $mainMod, W, exec, $scriptsDir/WallpaperSelect.sh
+bind = $mainMod SHIFT, O, exec, $scriptsDir/ZshChangeTheme.sh # Change oh-my-zsh theme
bind = $mainMod ALT, K, exec, $scriptsDir/SwitchKeyboardLayout.sh
bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh
@@ -183,4 +184,4 @@ bind = $mainMod ALT, P, submap, passthru
submap = passthru
# to unbind
bind = $mainMod ALT, P, submap, reset
-submap = reset \ No newline at end of file
+submap = reset
diff --git a/config/hypr/scripts/ZshChangeTheme.sh b/config/hypr/scripts/ZshChangeTheme.sh
new file mode 100755
index 00000000..7057ed2e
--- /dev/null
+++ b/config/hypr/scripts/ZshChangeTheme.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+themes_dir="$HOME/.oh-my-zsh/themes"
+file_extension=".zsh-theme"
+
+themes_array=($(find "$themes_dir" -type f -name "*$file_extension" -exec basename {} \; | sed -e "s/$file_extension//"))
+
+rofi_command="rofi -dmenu -config ~/.config/rofi/config-zsh-theme.rasi"
+
+menu() {
+ for theme in "${themes_array[@]}"; do
+ echo "$theme"
+ done
+}
+
+main() {
+ choice=$(menu | ${rofi_command})
+
+ # if nothing selected, script wont change anything
+ if [ -z "$choice" ]; then
+ exit 0
+ fi
+
+ zsh_path="$HOME/.zshrc"
+ var_name="ZSH_THEME"
+ for i in "${themes_array[@]}"; do
+ if [[ "$i" == "$choice"* ]]; then
+ if [ -f "$zsh_path" ]; then
+ sed -i "s/^$var_name=.*/$var_name=\"$i\"/" "$zsh_path"
+ else
+ echo "File not found"
+ fi
+ break
+ fi
+ done
+}
+
+main
diff --git a/config/rofi/config-zsh-theme.rasi b/config/rofi/config-zsh-theme.rasi
new file mode 100644
index 00000000..d669ccfa
--- /dev/null
+++ b/config/rofi/config-zsh-theme.rasi
@@ -0,0 +1,218 @@
+/* ---- 💫 https://github.com/JaKooLit 💫 ---- */
+/* zsh theme switch */
+/* -- submitted by https://github.com/hyprhex -- */
+
+/* ---- Configuration ---- */
+configuration {
+ modi: "drun,run";
+ font: "Fira Code SemiBold 12";
+ 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: 800px;
+ /*height: 450px;*/
+ 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;
+ border-radius: 12px;
+ background-color: @background-color;
+}
+
+/* ---- Mainbox ---- */
+mainbox {
+ enabled: true;
+ orientation: horizontal;
+ padding: 8px;
+ background-image: url("~/.config/rofi/.current_wallpaper", width);
+ children: [ "imagebox"];
+ border-radius: 12px;
+ background-color: @background;
+}
+
+/* ---- Imagebox ---- */
+imagebox {
+ background-color: transparent;
+ orientation: vertical;
+ children: [ "inputbar", "listbox"];
+}
+
+/* ---- Listbox ---- */
+listbox {
+ spacing: 4px;
+ orientation: vertical;
+ children: [ "listview" ];
+ border-radius: 10px;
+ border: 1px;
+ border-color: @active-background;
+ background-color: @background;
+}
+
+/* ---- Dummy ---- */
+dummy {
+ background-color: transparent;
+}
+
+/* ---- Inputbar ---- */
+inputbar {
+ enabled: true;
+ text-color: @foreground;
+ spacing: 10px;
+ padding: 8px;
+ 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: "Choose ZSH theme";
+ placeholder-color: inherit;
+ background-color: transparent;
+}
+
+/* ---- Listview ---- */
+listview {
+ enabled: true;
+ columns: 3;
+ lines: 5;
+ spacing: 4px;
+ dynamic: true;
+ cycle: true;
+ scrollbar: true;
+ layout: vertical;
+ reverse: false;
+ fixed-height: true;
+ fixed-columns: false;
+ background-color: transparent;
+ border-radius: 10px;
+}
+
+/* ---- Element ---- */
+element {
+ enabled: true;
+ padding: 5px;
+ margin: 2px;
+ cursor: pointer;
+ background-color: transparent;
+ border-radius: 10px;
+ border: 0px;
+}
+
+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: @background;
+ margin: 20px 0px 0px 0px;
+ border-radius: 10px;
+}
+
+textbox {
+ padding: 15px;
+ background-color: @background;
+ text-color: @foreground;
+}
+
+error-message {
+ padding: 15px;
+ border-radius: 20px;
+ background-color: @background;
+ text-color: @foreground;
+}
diff --git a/config/rofi/resolution/1080p/config-zsh-theme.rasi b/config/rofi/resolution/1080p/config-zsh-theme.rasi
new file mode 100644
index 00000000..d669ccfa
--- /dev/null
+++ b/config/rofi/resolution/1080p/config-zsh-theme.rasi
@@ -0,0 +1,218 @@
+/* ---- 💫 https://github.com/JaKooLit 💫 ---- */
+/* zsh theme switch */
+/* -- submitted by https://github.com/hyprhex -- */
+
+/* ---- Configuration ---- */
+configuration {
+ modi: "drun,run";
+ font: "Fira Code SemiBold 12";
+ 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: 800px;
+ /*height: 450px;*/
+ 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;
+ border-radius: 12px;
+ background-color: @background-color;
+}
+
+/* ---- Mainbox ---- */
+mainbox {
+ enabled: true;
+ orientation: horizontal;
+ padding: 8px;
+ background-image: url("~/.config/rofi/.current_wallpaper", width);
+ children: [ "imagebox"];
+ border-radius: 12px;
+ background-color: @background;
+}
+
+/* ---- Imagebox ---- */
+imagebox {
+ background-color: transparent;
+ orientation: vertical;
+ children: [ "inputbar", "listbox"];
+}
+
+/* ---- Listbox ---- */
+listbox {
+ spacing: 4px;
+ orientation: vertical;
+ children: [ "listview" ];
+ border-radius: 10px;
+ border: 1px;
+ border-color: @active-background;
+ background-color: @background;
+}
+
+/* ---- Dummy ---- */
+dummy {
+ background-color: transparent;
+}
+
+/* ---- Inputbar ---- */
+inputbar {
+ enabled: true;
+ text-color: @foreground;
+ spacing: 10px;
+ padding: 8px;
+ 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: "Choose ZSH theme";
+ placeholder-color: inherit;
+ background-color: transparent;
+}
+
+/* ---- Listview ---- */
+listview {
+ enabled: true;
+ columns: 3;
+ lines: 5;
+ spacing: 4px;
+ dynamic: true;
+ cycle: true;
+ scrollbar: true;
+ layout: vertical;
+ reverse: false;
+ fixed-height: true;
+ fixed-columns: false;
+ background-color: transparent;
+ border-radius: 10px;
+}
+
+/* ---- Element ---- */
+element {
+ enabled: true;
+ padding: 5px;
+ margin: 2px;
+ cursor: pointer;
+ background-color: transparent;
+ border-radius: 10px;
+ border: 0px;
+}
+
+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: @background;
+ margin: 20px 0px 0px 0px;
+ border-radius: 10px;
+}
+
+textbox {
+ padding: 15px;
+ background-color: @background;
+ text-color: @foreground;
+}
+
+error-message {
+ padding: 15px;
+ border-radius: 20px;
+ background-color: @background;
+ text-color: @foreground;
+}
diff --git a/config/rofi/resolution/1440p/config-zsh-theme.rasi b/config/rofi/resolution/1440p/config-zsh-theme.rasi
new file mode 100644
index 00000000..7173c3ae
--- /dev/null
+++ b/config/rofi/resolution/1440p/config-zsh-theme.rasi
@@ -0,0 +1,218 @@
+/* ---- 💫 https://github.com/JaKooLit 💫 ---- */
+/* zsh theme switch */
+/* -- submitted by https://github.com/hyprhex -- */
+
+/* ---- 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: 800px;
+ /*height: 450px;*/
+ 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;
+ border-radius: 12px;
+ background-color: @background-color;
+}
+
+/* ---- Mainbox ---- */
+mainbox {
+ enabled: true;
+ orientation: horizontal;
+ padding: 8px;
+ background-image: url("~/.config/rofi/.current_wallpaper", width);
+ children: [ "imagebox"];
+ border-radius: 12px;
+ background-color: @background;
+}
+
+/* ---- Imagebox ---- */
+imagebox {
+ background-color: transparent;
+ orientation: vertical;
+ children: [ "inputbar", "listbox"];
+}
+
+/* ---- Listbox ---- */
+listbox {
+ spacing: 4px;
+ orientation: vertical;
+ children: [ "listview" ];
+ border-radius: 10px;
+ border: 1px;
+ border-color: @active-background;
+ background-color: @background;
+}
+
+/* ---- Dummy ---- */
+dummy {
+ background-color: transparent;
+}
+
+/* ---- Inputbar ---- */
+inputbar {
+ enabled: true;
+ text-color: @foreground;
+ spacing: 10px;
+ padding: 8px;
+ 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: "Choose ZSH theme";
+ placeholder-color: inherit;
+ background-color: transparent;
+}
+
+/* ---- Listview ---- */
+listview {
+ enabled: true;
+ columns: 3;
+ lines: 5;
+ spacing: 4px;
+ dynamic: true;
+ cycle: true;
+ scrollbar: true;
+ layout: vertical;
+ reverse: false;
+ fixed-height: true;
+ fixed-columns: false;
+ background-color: transparent;
+ border-radius: 10px;
+}
+
+/* ---- Element ---- */
+element {
+ enabled: true;
+ padding: 5px;
+ margin: 2px;
+ cursor: pointer;
+ background-color: transparent;
+ border-radius: 10px;
+ border: 0px;
+}
+
+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: @background;
+ margin: 20px 0px 0px 0px;
+ border-radius: 10px;
+}
+
+textbox {
+ padding: 15px;
+ background-color: @background;
+ text-color: @foreground;
+}
+
+error-message {
+ padding: 15px;
+ border-radius: 20px;
+ background-color: @background;
+ text-color: @foreground;
+}
diff --git a/config/waybar/modules b/config/waybar/modules
index 8733cb65..7906a279 100644
--- a/config/waybar/modules
+++ b/config/waybar/modules
@@ -441,7 +441,7 @@
"temperature": {
"interval": 10,
"tooltip": true,
- "hwmon-path": ["/sys/class/hwmon/hwmon6/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
+ "hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
//"thermal-zone": 0,
"critical-threshold": 82,
"format-critical": "{temperatureC}°C {icon}",
@@ -697,7 +697,7 @@
"temperature#vertical": {
"interval": 10,
"tooltip": true,
- "hwmon-path": ["/sys/class/hwmon/hwmon6/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
+ "hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
//"thermal-zone": 0,
"critical-threshold": 80,
"format-critical": "{icon}\n{temperatureC}°C",
@@ -718,4 +718,4 @@
}
- \ No newline at end of file
+
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage