Browse Source

setting a variable for QuickEdit (SUPER E)

kitty background will now change depending on dark or light theme
pull/336/head
JaKooLit 2 years ago
parent
commit
b6cd460aa1
  1. 24
      config/hypr/UserScripts/QuickEdit.sh
  2. 16
      config/hypr/scripts/DarkLight.sh
  3. 12
      config/kitty/kitty.conf
  4. 23
      config/wallust/templates/colors-kitty.conf

24
config/hypr/UserScripts/QuickEdit.sh

@ -1,6 +1,10 @@
#!/bin/bash
# Rofi menu for Quick Edit / View of Settings (SUPER E)
# define your preferred text editor and terminal to use
editor=nano
tty=kitty
configs="$HOME/.config/hypr/configs"
UserConfigs="$HOME/.config/hypr/UserConfigs"
@ -21,34 +25,34 @@ main() {
choice=$(menu | rofi -i -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
case $choice in
1)
kitty -e nano "$UserConfigs/ENVariables.conf"
$tty $editor "$UserConfigs/ENVariables.conf"
;;
2)
kitty -e nano "$UserConfigs/WindowRules.conf"
$tty $editor "$UserConfigs/WindowRules.conf"
;;
3)
kitty -e nano "$UserConfigs/Startup_Apps.conf"
$tty $editor "$UserConfigs/Startup_Apps.conf"
;;
4)
kitty -e nano "$UserConfigs/UserKeybinds.conf"
$tty $editor "$UserConfigs/UserKeybinds.conf"
;;
5)
kitty -e nano "$UserConfigs/Monitors.conf"
$tty $editor "$UserConfigs/Monitors.conf"
;;
6)
kitty -e nano "$UserConfigs/Laptops.conf"
$tty $editor "$UserConfigs/Laptops.conf"
;;
7)
kitty -e nano "$UserConfigs/UserSettings.conf"
$tty $editor "$UserConfigs/UserSettings.conf"
;;
8)
kitty -e nano "$UserConfigs/WorkspaceRules.conf"
$tty $editor "$UserConfigs/WorkspaceRules.conf"
;;
9)
kitty -e nano "$configs/Settings.conf"
$tty $editor "$configs/Settings.conf"
;;
10)
kitty -e nano "$configs/Keybinds.conf"
$tty $editor "$configs/Keybinds.conf"
;;
*)
;;

16
config/hypr/scripts/DarkLight.sh

@ -14,6 +14,8 @@ SCRIPTSDIR="$HOME/.config/hypr/scripts"
notif="$HOME/.config/swaync/images/bell.png"
wallust_rofi="$HOME/.config/wallust/templates/colors-rofi.rasi"
kitty_conf="$HOME/.config/kitty/kitty.conf"
wallust_config="$HOME/.config/wallust/wallust.toml"
pallete_dark="dark16"
pallete_light="light16"
@ -97,6 +99,20 @@ else
sed -i '/@define-color noti-bg-alt/s/#.*;/#F0F0F0;/' "${ags_style}"
fi
# kitty background color change
if [ "$next_mode" = "Dark" ]; then
sed -i '/^foreground /s/^foreground .*/foreground #dddddd/' "${kitty_conf}"
sed -i '/^background /s/^background .*/background #000000/' "${kitty_conf}"
sed -i '/^cursor /s/^cursor .*/cursor #dddddd/' "${kitty_conf}"
else
sed -i '/^foreground /s/^foreground .*/foreground #000000/' "${kitty_conf}"
sed -i '/^background /s/^background .*/background #dddddd/' "${kitty_conf}"
sed -i '/^cursor /s/^cursor .*/cursor #000000/' "${kitty_conf}"
fi
# Set Dynamic Wallpaper for Dark or Light Mode
if [ "$next_mode" = "Dark" ]; then
next_wallpaper="$(find "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)"

12
config/kitty/kitty.conf

@ -4,7 +4,7 @@ bold_font auto
italic_font auto
bold_italic_font auto
background_opacity 0.7
background_opacity 0.5
confirm_os_window_close 0
scrollback_lines 2000
@ -12,7 +12,11 @@ wheel_scroll_min_lines 1
enable_audio_bell no
selection_foreground #000000
selection_background #F5FBFF
selection_foreground none
selection_background none
window_padding_width 4
window_padding_width 4
foreground #dddddd
background #000000
cursor #dddddd

23
config/wallust/templates/colors-kitty.conf

@ -1,19 +1,26 @@
font_family Fira Code SemiBold
font_size 13.0
bold_font auto
italic_font auto
bold_italic_font auto
font_size 16.0
bold_font auto
italic_font auto
bold_italic_font auto
background_opacity 0.5
confirm_os_window_close 0
scrollback_lines 2000
wheel_scroll_min_lines 1
enable_audio_bell no
window_padding_width 4
selection_foreground none
selection_background none
foreground {{foreground}}
background {{background}}
background_opacity 0.7
cursor {{cursor}}
selection_foreground #000000
selection_background #F5FBFF
active_tab_foreground {{background}}
active_tab_background {{foreground}}
inactive_tab_foreground {{foreground}}

Loading…
Cancel
Save