diff --git a/.bashrc b/.bashrc index 9fa01a1..ab93a2f 100644 --- a/.bashrc +++ b/.bashrc @@ -5,48 +5,51 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return -# uncomment for a colored prompt, if the terminal has the capability; turned -# off by default to not distract the user: the focus in a terminal window -# should be on the output of commands, not on the prompt -force_color_prompt=yes - -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - +# Prompt setup +color_prompt=yes if [ "$color_prompt" = yes ]; then - PS1='\[\033[0;37m\]--[\t]--\n\u in \[\033[01;32m\]\w\[\033[0;37m\]\$\[\033[0;00m\] ' + PS1='\n\[\033[0;37m\]--[\t]--\n\u in \[\033[01;32m\]\w\[\033[0;37m\]\$\[\033[0;00m\] ' else PS1='[\u@\h \W]\$ ' fi -unset color_prompt force_color_prompt +unset color_prompt # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias l='ls' - alias ls='ls -l --color=auto' + + alias l='ls -l --color=auto' + alias ls='ls --color=auto' alias la='ls -la --color=auto' alias grep='grep --color=auto' + alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0' - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' + alias v='vim' + alias s='sudo' + alias p='pacman' - #alias grep='grep --color=auto' - #alias fgrep='fgrep --color=auto' - #alias egrep='egrep --color=auto' + alias dir='dir --color=auto' + alias vdir='vdir --color=auto' + + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' fi +# Cautious deletion by default alias rm='rm -i' +# Set up fzf key bindings and fuzzy completion +eval "$(fzf --bash)" + +fcd() { + cd "$(find -type d | fzf --preview 'tree -C {} | head -200' --preview-window 'up:60%')" +} + +# Set color scheme based on wallpaper (set by i3/feh) +wal -Rneq + +# Set visibility of my custom scripts export PATH=$PATH:/home/slime/Scripts # Created by `pipx` on 2024-09-02 22:36:15 diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..af31fb9 --- /dev/null +++ b/.vimrc @@ -0,0 +1,14 @@ +" basic yummies +syntax on +set incsearch +set hlsearch +set relativenumber + +" basic file explorer +let g:netrw_banner = 0 +let g:netrw_browse_split = 4 +let g:netrw_winsize = 25 +let g:netrw_altv = 1 +let g:netrw_alto = 1 + +map :Lexplore diff --git a/Scripts/package-e-search b/Scripts/package-e-search new file mode 100755 index 0000000..5f6c3da --- /dev/null +++ b/Scripts/package-e-search @@ -0,0 +1,3 @@ +#! /bin/bash + +pacman -Qeq | fzf --preview="pacman -Qi {}" diff --git a/Scripts/set_wallpaper b/Scripts/set_wallpaper new file mode 100755 index 0000000..4fdfc45 --- /dev/null +++ b/Scripts/set_wallpaper @@ -0,0 +1,12 @@ +#! /bin/bash + +# get color scheme based on wallpaper provided to first (laptop) monitor +wal -i /home/slime/Pictures/papes/${1} --cols16 -n + +# set wallpapers +feh --bg-scale /home/slime/Pictures/papes/${1} /home/slime/Pictures/papes/${2} + +# link configs for non-supported wal programs +ln -sf ~/.cache/wal/theme.rasi ~/.config/rofi/theme.rasi +ln -sf ~/.cache/wal/conky.conf ~/.config/conky/conky.conf + diff --git a/ff_theme.zip b/ff_theme.zip deleted file mode 100644 index 41b3ca1..0000000 Binary files a/ff_theme.zip and /dev/null differ diff --git a/i3blocks.conf b/i3blocks.conf index c328d28..25986a6 100644 --- a/i3blocks.conf +++ b/i3blocks.conf @@ -7,29 +7,19 @@ # Global properties -separator=false -separator_block_width=40 - -[date] -command=date '+%a, %b %d - %H:%M:%S ' -interval=1 -# color=#c0caf5 -color=#c0caf5 - -[padding] -command=echo ' ' -interval=once +separator=true +separator_block_width=30 [weather] command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo interval=1800 -color=#c0caf5 +# color=#c0caf5 [brightness] command=echo " $(brightnessctl get | awk '{print $0 / 24000 * 100}')" signal=11 interval=once -color=#c0caf5 +# color=#c0caf5 [volume] command=i3blocks_volume @@ -37,7 +27,18 @@ command=i3blocks_volume # command=echo "vol: $(wpctl get-volume 50 | awk '{print $2*100}')" signal=10 interval=once -color=#c0caf5 +# color=#c0caf5 + +[date] +command=date '+%a, %b %d' +interval=once +# color=#c0caf5 +# color=#c0caf5 + +[time] +command=date '+%H:%M:%S' +interval=1 +# color=#c0caf5 # [battery] # command=echo "bat: $(sudo cat /sys/class/power_supply/BAT0/capacity)%" diff --git a/i3config b/i3config index cbbf5c7..f657d91 100644 --- a/i3config +++ b/i3config @@ -161,45 +161,62 @@ bindsym $mod+r mode "resize" # START CUSTOM STUFF # ###################### +# Screenshot +bindsym $mod+Shift+x exec --no-startup-id scrot -s + # Color variables -#set $bg-color #2f343f -set $bg-color #0f2443 -set $inactive-bg-color #0f2443 -#set $text-color #c0caf5 -set $text-color #e5c2be -set $inactive-text-color #676E7D -set $urgent-bg-color #E53935 +# Set colors from Xresources +# Change 'color7' and 'color2' to whatever colors you want i3 to use +# from the generated scheme. +# NOTE: The '#f0f0f0' in the lines below is the color i3 will use if +# it fails to get colors from Xresources. +set_from_resource $fg i3wm.foreground #f0f0f0 +set_from_resource $bg i3wm.background #f0f0f0 -# Start i3bar +# class border backgr. text indicator child_border +client.focused $bg $bg $fg $bg $bg +client.focused_inactive $bg $bg $fg $bg $bg +client.unfocused $bg $bg $fg $bg $bg +client.urgent $bg $bg $fg $bg $bg +client.placeholder $bg $bg $fg $bg $bg + +client.background $bg + +# Pape +exec_always --no-startup-id wal -Rn -o /home/slime/.fehbg + +# i3status bar { - position top - status_command i3blocks - strip_workspace_numbers yes - tray_output none - - separator_symbol "-" - - padding 5px 15px - - colors { - background $bg-color - separator $text-color - # border background text - focused_workspace $bg-color $bg-color $text-color - inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color - urgent_workspace $urgent-bg-color $urgent-bg-color $text-color - } + position top + status_command i3blocks + strip_workspace_numbers yes + padding 5px 15px + tray_output none + separator_symbol "~" + + colors { + background $bg + separator $fg + # border bg txt + focused_workspace $fg $bg $fg + inactive_workspace $bg $bg $fg + urgent_workspace #E53935 $bg $fg + } } -# Compositor +# PROTIP: You can also dynamically set dmenu's colors this way: +# bindsym $mod+d exec dmenu_run -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"# Compositor + exec_always --no-startup-id picom --config /home/slime/.config/picom.conf -# Autostart +# Autostart programs exec --no-startup-id i3-msg 'workspace number $ws10; exec --no-startup-id conky; workspace number $ws10' -exec prime_offload -# Pape -exec_always --no-startup-id feh --bg-scale ~/Pictures/papes/Oymyakon_forests.jpg +# monitor + graphics driver setup +exec --no-startup-id /home/slime/.screenlayout/first_shot.sh +exec --no-startup-id prime-offload + +# exec --no-startup-id set_wallpaper ~/Pictures/papes/green-horizon.png ~/Pictures/papes/ultrawide/deep-blue-5120x1440.jpg # Workspace assignment assign [class="LibreWolf"] $ws1 diff --git a/rofi_theme.rasi b/rofi_theme.rasi deleted file mode 100644 index 28f9ac0..0000000 --- a/rofi_theme.rasi +++ /dev/null @@ -1,111 +0,0 @@ -* { - font: "IBM Plex Mono 10"; - - bg0 : #0f2443; - bg1 : #0f2443; - bg2 : #0f2443; - fg0 : #e5c2be; - fg1 : #c0caf5; - fg2 : #a9b1d6; - red : #f7768e; - green : #9ece6a; - yellow : #e0af68; - blue : #7aa2f7; - magenta : #9a7ecc; - cyan : #4abaaf; - - accent: #c0caf5; - urgent: @yellow; - - background-color : transparent; - text-color : @fg0; - - margin : 0; - padding : 0; - spacing : 0; -} - -element-icon, element-text, scrollbar { - cursor: pointer; -} - -window { - location : northwest; - width : 280px; - x-offset : 0px; - y-offset : 28px; - - background-color: @bg1; -} - -inputbar { - spacing : 8px; - padding : 4px 8px; - children : [ icon-search, entry ]; - - background-color: @bg0; -} - -icon-search, entry, element-icon, element-text { - vertical-align: 0.5; -} - -icon-search { - expand : false; - filename : "search-symbolic"; - size : 14px; -} - -textbox { - padding : 4px 8px; - background-color : @bg2; -} - -listview { - padding : 4px 0px; - lines : 5; - columns : 1; - scrollbar : false; - fixed-height : false; - dynamic : true; -} - -element { - padding : 4px 8px; - spacing : 8px; -} - -element normal urgent { - text-color: @urgent; -} - -element normal active { - text-color: @accent; -} - -element alternate active { - text-color: @accent; -} - -element selected { - text-color : @bg1; - background-color : @accent; -} - -element selected urgent { - background-color: @urgent; -} - -element-icon { - size: 0.8em; -} - -element-text { - text-color: inherit; -} - -scrollbar { - handle-width : 4px; - handle-color : @accent; - padding : 0 4px; -} diff --git a/wal/templates/conky.conf b/wal/templates/conky.conf new file mode 100644 index 0000000..6e27ffb --- /dev/null +++ b/wal/templates/conky.conf @@ -0,0 +1,88 @@ +-- Conky, a system monitor https://github.com/brndnmtthws/conky +-- +-- This configuration file is Lua code. You can write code in here, and it will +-- execute when Conky loads. You can use it to generate your own advanced +-- configurations. +-- +-- Try this (remove the `--`): +-- +-- print("Loading Conky config") +-- +-- For more on Lua, see: +-- https://www.lua.org/pil/contents.html +-- +-- Conky Lua API: https://conky.cc/lua + +-- Configuration settings: https://conky.cc/config_settings +conky.config = {{ + alignment = 'bottom_left', + background = true, + border_width = 1, + cpu_avg_samples = 2, + default_color = '{color7}', + default_outline_color = '{color7}', + default_shade_color = 'white', + double_buffer = true, + draw_borders = false, + draw_graph_borders = true, + draw_outline = false, + draw_shades = false, + extra_newline = false, + font = 'Source Code Pro:size=12', + gap_x = 65, + gap_y = 65, + minimum_height = 5, + minimum_width = 5, + net_avg_samples = 2, + no_buffers = true, + out_to_console = false, + out_to_ncurses = false, + out_to_stderr = false, + out_to_wayland = false, + out_to_x = true, + own_window = true, + own_window_class = 'Conky', + own_window_type = 'normal', + own_window_transparent = no, + own_window_hints = 'undecorated,below,skip_taskbar,skip_pager', + show_graph_range = false, + show_graph_scale = false, + stippled_borders = 0, + update_interval = 1.0, + uppercase = false, + use_spacer = 'none', + use_xft = true, + own_window_colour = '{background}' +}} + +-- Variables: https://conky.cc/variables +conky.text = [[ +#${{color {foreground}}}$color ${{scroll 40 sup /wg/}} +${{color {foreground}}}$color ${{scroll 40 :) computer !!! computers are awesome! aw yeah beep beep boop}} +$hr +${{color {foreground}}}Uptime:$color $uptime +# ${{color {foreground}}}Frequency (in MHz):$color $freq +# ${{color {foreground}}}Frequency (in GHz):$color $freq_g +${{color {foreground}}}CPU Usage:$color $cpu% ${{cpubar 4}} +${{color {foreground}}}RAM Usage:$color $memperc% ${{membar 4}} +# ${{color {foreground}}}RAM Usage:$color $mem/$memmax - $memperc% ${{membar 4}} +# ${{color {foreground}}}Swap Usage:$color $swap/$swapmax - $swapperc% ${{swapbar 4}} +${{color {foreground}}}Processes:$color $processes ${{color {foreground}}}Running:$color $running_processes +$hr +${{color {foreground}}}Hard Drive: + $color${{fs_used /}}/${{fs_size /}} ${{fs_bar 6 /}} +${{color {foreground}}}Networking: + Up:$color ${{upspeed wlp2s0}} ${{color {foreground}}} - Down:$color ${{downspeed wlp2s0}} +${{color {foreground}}}Battery: + ${{battery BAT0}} +$hr +${{color {foreground}}}Name PID CPU% MEM% +${{color {foreground}}} ${{top name 1}} ${{top pid 1}} ${{top cpu 1}} ${{top mem 1}} +${{color {foreground}}} ${{top name 2}} ${{top pid 2}} ${{top cpu 2}} ${{top mem 2}} +${{color {foreground}}} ${{top name 3}} ${{top pid 3}} ${{top cpu 3}} ${{top mem 3}} +${{color {foreground}}} ${{top name 4}} ${{top pid 4}} ${{top cpu 4}} ${{top mem 4}} +${{color {foreground}}} ${{top name 5}} ${{top pid 5}} ${{top cpu 5}} ${{top mem 5}} +${{color {foreground}}} ${{top name 6}} ${{top pid 6}} ${{top cpu 6}} ${{top mem 6}} +${{color {foreground}}} ${{top name 7}} ${{top pid 7}} ${{top cpu 7}} ${{top mem 7}} +${{color {foreground}}} ${{top name 8}} ${{top pid 8}} ${{top cpu 8}} ${{top mem 8}} +]] diff --git a/wal/templates/theme.rasi b/wal/templates/theme.rasi new file mode 100644 index 0000000..8680cbe --- /dev/null +++ b/wal/templates/theme.rasi @@ -0,0 +1,116 @@ +* {{ + font: "IBM Plex Mono 10"; + + bg : {color0}; + scroll : {color8}; + + fg : {foreground}; + red : #f7768e; + green : #9ece6a; + blue : #7aa2f7; + magenta : #9a7ecc; + cyan : #4abaaf; + + urgent: {color9}; + + background-color: @bg; + + text-color : @fg; + + margin : 0; + padding : 0; + spacing : 0; +}} + +element-icon, element-text, scrollbar {{ + cursor: pointer; +}} + +window {{ + location : northwest; + width : 280px; + x-offset : 0px; + y-offset : 38px; + + background-color: @bg; +}} + +inputbar {{ + spacing : 8px; + padding : 4px 8px; + children : [ icon-search, entry ]; + + background-color: @bg; +}} + +icon-search, entry, element-icon, element-text {{ + vertical-align: 0.5; + background-color: @bg; + text-color: @fg; +}} + +icon-search {{ + display: none; + expand : false; + filename : "search-symbolic"; + size : 0px; +}} + +textbox {{ + padding : 4px 8px; +}} + +listview {{ + padding : 4px 0px; + lines : 5; + columns : 1; + scrollbar : false; + fixed-height : false; + dynamic : true; +}} + +element {{ + padding : 4px 8px; + spacing : 8px; + + background-color: @bg; + text-color: @fg; +}} + +element normal urgent {{ + text-color: @urgent; + background-color: @fg; +}} + +element normal active {{ +}} + +element alternate active {{ + text-color: inherit; + background-color: inherit; +}} + +element selected {{ + background-color: @fg; + text-color: @bg; +}} + +element selected urgent {{ + background-color: @urgent; +}} + +element-icon {{ + display: none; + size: 0.8em; +}} + +element-text {{ + text-color: inherit; + background-color: inherit; +}} + +scrollbar {{ + handle-width : 4px; + handle-color : @scroll; + padding : 0 4px; +}}