diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..daad9ed --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,11 @@ + + + + +if [ "$TERMINAL_EMULATOR" = "JetBrains-JediTerm" ] + bind '[5D' backward-word + bind '[5C' forward-word + +end + +thefuck --alias | source diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 0000000..eb89960 --- /dev/null +++ b/.config/fish/fish_variables @@ -0,0 +1,34 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR JAVA_HOME:/usr/lib/jvm/java\x2d11\x2dopenjdk\x2damd64 +SETUVAR __fish_initialized:3100 +SETUVAR fish_color_autosuggestion:555 +SETUVAR fish_color_cancel:normal +SETUVAR fish_color_command:005fd7 +SETUVAR fish_color_comment:990000 +SETUVAR fish_color_cwd:blue +SETUVAR fish_color_cwd_root:800000 +SETUVAR fish_color_end:00875f +SETUVAR fish_color_error:ff0000 +SETUVAR fish_color_escape:00a6b2 +SETUVAR fish_color_history_current:normal +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_match:normal +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:00a6b2 +SETUVAR fish_color_param:00afff +SETUVAR fish_color_quote:999900 +SETUVAR fish_color_redirection:00afff +SETUVAR fish_color_search_match:ffff00 +SETUVAR fish_color_selection:c0c0c0 +SETUVAR fish_color_status:red +SETUVAR fish_color_user:blue +SETUVAR fish_color_valid_path:normal +SETUVAR fish_greeting:\x1d +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow +SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_user_paths:/home/valentin/\x2elocal/bin\x1e/usr/local/bin/stack\x1e/home/valentin/\x2envm/versions/node/v14\x2e14\x2e0/bin/npm\x1e/home/valentin/\x2envm/versions/node/v14\x2e14\x2e0/bin/ diff --git a/.config/fish/functions/cypress.fish b/.config/fish/functions/cypress.fish new file mode 100644 index 0000000..6c9d06f --- /dev/null +++ b/.config/fish/functions/cypress.fish @@ -0,0 +1,3 @@ +function cypress + node_modules/.bin/cypress $argv +end diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..2979e8b --- /dev/null +++ b/.config/fish/functions/fish_prompt.fish @@ -0,0 +1,27 @@ +function fish_prompt --description 'Write out the prompt' + set -l last_pipestatus $pipestatus + set -l last_status $status + set -l normal (set_color normal) + + # Color the prompt differently when we're root + set -l color_cwd $fish_color_cwd + set -l prefix + set -l suffix 'λ' + if contains -- $USER root toor + if set -q fish_color_cwd_root + set color_cwd $fish_color_cwd_root + end + set suffix '#' + end + + # If we're running via SSH, change the host color. + set -l color_host $fish_color_host + if set -q SSH_TTY + set color_host $fish_color_host_remote + end + + # Write pipestatus + set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus) + + echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color $color_host) (prompt_hostname) $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal $prompt_status \n $suffix " " +end diff --git a/.config/fish/functions/idea.fish b/.config/fish/functions/idea.fish new file mode 100644 index 0000000..be75a8d --- /dev/null +++ b/.config/fish/functions/idea.fish @@ -0,0 +1,3 @@ +function idea + ~/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/212.4746.92/bin/idea.sh $argv &>/dev/null & +end diff --git a/.config/xmobar/xmobarrc b/.config/xmobar/xmobarrc new file mode 100644 index 0000000..511af6c --- /dev/null +++ b/.config/xmobar/xmobarrc @@ -0,0 +1,34 @@ +Config { overrideRedirect = False + , font = "xft:Roboto Mono for Powerline:size=11" + , bgColor = "#0E0A0C" + , fgColor = "#d49a9c" + , position = TopW L 100 + , commands = [ Run Weather "EGPF" + [ "--template", " °C" + , "-L", "0" + , "-H", "25" + , "--low" , "lightblue" + , "--normal", "#f8f8f2" + , "--high" , "red" + ] 36000 + , Run Cpu + [ "-L", "3" + , "-H", "50" + , "--high" , "red" + , "--normal", "green" + ] 10 + , Run Alsa "default" "Master" + [ "--template", "" + , "--suffix" , "True" + , "--" + , "--on", "" + ] + , Run Memory ["--template", "Mem: %"] 10 + , Run Swap [] 10 + , Run Date "%a %Y-%m-%d %H:%M" "date" 10 + , Run XMonadLog + ] + , sepChar = "%" + , alignSep = "}{" + , template = "%XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %EGPF% | %date% " + } diff --git a/.config/xmobar/xmobarrc-template b/.config/xmobar/xmobarrc-template new file mode 100644 index 0000000..eea4fa5 --- /dev/null +++ b/.config/xmobar/xmobarrc-template @@ -0,0 +1,34 @@ +Config { overrideRedirect = False + , font = "xft:Roboto Mono for Powerline:size=11" + , bgColor = "BGCOLOR" + , fgColor = "FGCOLOR" + , position = TopW L 100 + , commands = [ Run Weather "EGPF" + [ "--template", " °C" + , "-L", "0" + , "-H", "25" + , "--low" , "lightblue" + , "--normal", "#f8f8f2" + , "--high" , "red" + ] 36000 + , Run Cpu + [ "-L", "3" + , "-H", "50" + , "--high" , "red" + , "--normal", "green" + ] 10 + , Run Alsa "default" "Master" + [ "--template", "" + , "--suffix" , "True" + , "--" + , "--on", "" + ] + , Run Memory ["--template", "Mem: %"] 10 + , Run Swap [] 10 + , Run Date "%a %Y-%m-%d %H:%M" "date" 10 + , Run XMonadLog + ] + , sepChar = "%" + , alignSep = "}{" + , template = "%XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %EGPF% | %date% " + } diff --git a/.gitignore b/.gitignore index 8bfc430..384ea23 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ !.config !.config/xmonad -!.config/xmobar -!.config/fish +!.config/xmobar/* +!.config/fish/* diff --git a/.scripts/changebg b/.scripts/changebg new file mode 100755 index 0000000..9a6c6f1 --- /dev/null +++ b/.scripts/changebg @@ -0,0 +1,62 @@ +#!/bin/bash + +xmobar_change(){ + echo "changing xmobarrc" + source ~/.cache/wal/colors.sh + sed -e "s/BGCOLOR/$background/g" \ + -e "s/FGCOLOR/$foreground/g" \ + -e "s/COLOR1/$color1/g" \ + -e "s/COLOR2/$color2/g" \ + -e "s/COLOR3/$color3/g" \ + -e "s/COLOR4/$color4/g" \ + -e "s/COLOR5/$color5/g" \ + -e "s/COLOR6/$color6/g" \ + -e "s/COLOR7/$color7/g" \ + -e "s/COLOR8/$color8/g" \ + -e "s/COLOR9/$color9/g" \ + -e "s/COLOR10/$color10/g" \ + -e "s/COLOR11/$color11/g" \ + -e "s/COLOR12/$color12/g" \ + -e "s/COLOR13/$color13/g" \ + -e "s/COLOR14/$color14/g" \ + -e "s/COLOR15/$color15/g" \ + ~/.config/xmobar/xmobarrc-template > ~/.config/xmobar/xmobarrc +} +args=("$@") +PATH_TO_IMG="${args[0]}" + +echo $PATH_TO_IMG + +wal -i $PATH_TO_IMG +feh --bg-center $PATH_TO_IMG + +# overwrite .Xresources file +cat ~/.cache/wal/colors.Xresources > ~/.Xresources +echo "\nXcursor.theme: Breeze" >> ~./Xresources + +# merge it into xrdb +xrdb -merge ~/.Xresources + +# Does not really work because it takes the wrong colors and the cli cannot use the Xresources file for some reason... +# aur package is themix-full-git + +# generate new gtk themes +#/opt/oomox/plugins/theme_oomox/change_color.sh ~/.cache/wal/colors-oomox -o Wal -t ~/.themes/ -d true -m gtk3 + +xmobar_change +killall xmobar +xmonad --restart +#cd ~/dev/linux/st +#sudo make clean install +#cd /home/os/bin/dmenu +#sudo make clean install + +# change lock screen background +#betterlockscreen -u $PATH_TO_IMG + + + +# change login manager screen +PROJECT_ROOT="/home/os/Documents/Projects/aether-fork" # change this path if needed. +WALLPAPER_FOLDER="src/img/wallpapers" +WAL_CSS="/home/os/.cache/wal/colors.json" diff --git a/.scripts/poweroff b/.scripts/poweroff new file mode 100644 index 0000000..f01bedd --- /dev/null +++ b/.scripts/poweroff @@ -0,0 +1,2 @@ +#!/bin/bash +systemctl poweroff