Update install.sh
This commit is contained in:
41
install.sh
41
install.sh
@@ -218,11 +218,14 @@ pip3 install colorgram.py --break-system-packages
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
echo -e "${YELLOW} Set User folders via xdg-user-dirs-update & xdg-mime default. ${NC}"
|
||||
# ls /usr/share/applications/ Find The Default run.: "xdg-mime query default inode/directory"
|
||||
|
||||
xdg-user-dirs-update
|
||||
|
||||
xdg-mime default kitty.desktop text/x-shellscript
|
||||
xdg-mime default nsxiv.desktop image/jpeg
|
||||
xdg-mime default nsxiv.desktop image/png
|
||||
|
||||
xdg-mime default thunar.desktop inode/directory
|
||||
|
||||
# Picom (Yshui) install
|
||||
#sudo apt install -y libconfig-dev libdbus-1-dev libegl-dev libev-dev libgl-dev libepoxy-dev libpcre2-dev libpixman-1-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-damage0-dev libxcb-dpms0-dev libxcb-glx0-dev libxcb-image0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-util-dev libxcb-xfixes0-dev libxext-dev meson ninja-build uthash-dev
|
||||
@@ -482,7 +485,7 @@ echo -e "${YELLOW} Kitty theme.conf Start ${NC}"
|
||||
|
||||
if [ ! -f $HOME/.config/kitty/theme.conf ]; then
|
||||
mkdir -p $HOME/.config/kitty/themes
|
||||
cat << "KITTYTHEMECONF" > $HOME/.config/kitty/theme.conf
|
||||
cat << "KITTYTHEMECONF" > $HOME/.config/kitty/themes/theme.conf
|
||||
foreground #f8f8f2
|
||||
background #282a36
|
||||
selection_foreground #ffffff
|
||||
@@ -763,21 +766,21 @@ sudo bash -c 'cat << "AUTONEWWALLPAPERANDCOLORSBIN" >> /usr/local/bin/auto-new-w
|
||||
#!/bin/bash
|
||||
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/.local/bin
|
||||
|
||||
# Check if Python script exists
|
||||
if [ ! -f "$HOME/.config/qtile/extract_colors.py" ]; then
|
||||
echo "$HOME/.config/qtile/extract_colors.py not found! Please ensure the Python script is in the same directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
feh --bg-scale --randomize $HOME/Wallpapers/*
|
||||
#feh --bg-scale "$(find $HOME/Wallpapers -type f | shuf -n 1)"
|
||||
RWALLP="$(find $HOME/Wallpapers -type f | shuf -n 1)"
|
||||
|
||||
# Run Python script to extract colors
|
||||
python3 $HOME/.config/qtile/extract_colors.py $(cat $HOME/.fehbg | sed -n "s/[^'\'']*'\''\([^'\'']*\)'\''.*/\1/p")
|
||||
notify-send "Automatically new background and color theme" "Please wait while the background image and colors is being pro>
|
||||
|
||||
python3 $HOME/.config/qtile/extract_colors.py $RWALLP
|
||||
feh --bg-scale $RWALLP
|
||||
qtile cmd-obj -o cmd -f reload_config
|
||||
kitty +kitten themes --reload-in=all Theme
|
||||
|
||||
kitty @ set-colors --all $HOME/.config/kitty/theme.conf
|
||||
notify-send "Automatically new background and color theme" "The background image and colors has been updated."
|
||||
|
||||
AUTONEWWALLPAPERANDCOLORSBIN'
|
||||
|
||||
@@ -905,7 +908,7 @@ def main(image_path):
|
||||
f.write("}\n")
|
||||
|
||||
# Ensure the directory exists
|
||||
kitty_config_dir = os.path.expanduser('~/.config/kitty/')
|
||||
kitty_config_dir = os.path.expanduser('~/.config/kitty/themes/')
|
||||
os.makedirs(kitty_config_dir, exist_ok=True)
|
||||
|
||||
# Path to the output file
|
||||
@@ -1033,7 +1036,9 @@ fi
|
||||
|
||||
echo -e "${YELLOW} Rofi Run menu END ${NC}"
|
||||
|
||||
|
||||
# Rofi Wifi menu
|
||||
# https://github.com/ericmurphyxyz/rofi-wifi-menu/tree/master
|
||||
echo -e "${YELLOW} Rofi Wifi menu Start ${NC}"
|
||||
if [ ! -f ~/.config/rofi/rofi-wifi-menu.sh ]; then
|
||||
cat << "ROFIWIFI" > ~/.config/rofi/rofi-wifi-menu.sh
|
||||
#!/usr/bin/env bash
|
||||
@@ -1091,7 +1096,7 @@ echo -e "${YELLOW} Rofi Wifi menu END ${NC}"
|
||||
echo -e "${YELLOW} Kitty config file START ${NC}"
|
||||
|
||||
if [ ! -f ~/.config/kitty/kitty.conf ]; then
|
||||
mkdir -p ~/.config/kitty/
|
||||
mkdir -p ~/.config/kitty/themes
|
||||
cat << "KITTYCONFIG" > ~/.config/kitty/kitty.conf
|
||||
# A default configuration file can also be generated by running:
|
||||
# kitty +runpy 'from kitty.config import *; print(commented_out_default_config())'
|
||||
@@ -1423,7 +1428,7 @@ map kitty_mod+delete clear_terminal reset active
|
||||
map kitty_mod+f5 load_config_file
|
||||
map kitty_mod+f6 debug_config
|
||||
|
||||
include ~/.config/kitty/theme.conf
|
||||
include ~/.config/kitty/themes/theme.conf
|
||||
|
||||
KITTYCONFIG
|
||||
|
||||
@@ -1548,13 +1553,13 @@ keys = [
|
||||
# Key([mod], "Return", lazy.spawn(terminal), desc="Launch Terminal"),
|
||||
|
||||
# Keybindings
|
||||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch Terminal"),
|
||||
Key([mod], "b", lazy.spawn(browser), desc="Launch Web Browser"),
|
||||
Key([mod], "e", lazy.spawn(fileexplorer), desc="Launch File Explorer"),
|
||||
Key([mod], "r", lazy.spawn(runmenu), desc='Launch Run Menu'),
|
||||
Key([mod], "Return", lazy.spawn(terminal), desc="Terminal"),
|
||||
Key([mod], "b", lazy.spawn(browser), desc="Web Browser"),
|
||||
Key([mod], "e", lazy.spawn(fileexplorer), desc="File Explorer"),
|
||||
Key([mod], "r", lazy.spawn(runmenu), desc="Run Menu"),
|
||||
Key([mod, "shift"], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
|
||||
Key([mod], "l", lazy.spawn(os.path.expanduser("xsecurelock")), desc='Computer Lockdown'),
|
||||
Key([mod, "control", "mod1"], "n", lazy.spawn(os.path.expanduser("auto-new-wallpaper-and-colors")), desc='Random background image and new colors'),
|
||||
Key([mod], "l", lazy.spawn(os.path.expanduser("xsecurelock")), desc="Computer Lockdown"),
|
||||
Key([mod, "control", "mod1"], "t", lazy.spawn(os.path.expanduser("auto-new-wallpaper-and-colors")), desc="Random Theme"),
|
||||
|
||||
# Default
|
||||
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
|
||||
|
||||
Reference in New Issue
Block a user