commit afe3154fa90691f7ef3e5ca118e08edce51822cf Author: a Date: Sat Nov 30 21:52:04 2024 +0100 asd diff --git a/Monocraft-nerd-fonts-patched.ttf b/Monocraft-nerd-fonts-patched.ttf new file mode 100644 index 0000000..aeec1fc Binary files /dev/null and b/Monocraft-nerd-fonts-patched.ttf differ diff --git a/arch.pacman.conf b/arch.pacman.conf new file mode 100644 index 0000000..8657572 --- /dev/null +++ b/arch.pacman.conf @@ -0,0 +1,20 @@ +[options] +HoldPkg = pacman glibc +Architecture = auto +CheckSpace +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional + + +# repositories +[core] +Include = /etc/pacman.d/mirrorlist + +[extra] +Include = /etc/pacman.d/mirrorlist + +[community] +Include = /etc/pacman.d/mirrorlist + +[multilib] +Include = /etc/pacman.d/mirrorlist diff --git a/artix.pacman.conf b/artix.pacman.conf new file mode 100644 index 0000000..e296e48 --- /dev/null +++ b/artix.pacman.conf @@ -0,0 +1,27 @@ +[options] +HoldPkg = pacman glibc +Architecture = auto +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional +IgnorePkg = firefox vlc chromium qutebrowser qview thunar krita + + +# Repositories + +# Artix +[system] +Include = /etc/pacman.d/mirrorlist +[world] +Include = /etc/pacman.d/mirrorlist +[galaxy] +Include = /etc/pacman.d/mirrorlist +[universe] +Server=https://universe.artixlinux.org/$arch + +# Arch +#[extra] +#Include = /etc/pacman.d/mirrorlist-arch +#[community] +#Include = /etc/pacman.d/mirrorlist-arch +#[multilib] +#Include = /etc/pacman.d/mirrorlist-arch diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml new file mode 100644 index 0000000..e2a0168 --- /dev/null +++ b/config/alacritty/alacritty.toml @@ -0,0 +1,24 @@ +import = [ + "~/.config/alacritty/chicago95.toml" +] + +shell = "zsh" +colors.primary.background = "#000000" + +[font] +normal.family = "Monocraft Nerd Font" +size = 12.5 + +[window] +padding = {x = 5, y = 5 } +dynamic_title = true + +[keyboard] +bindings = [ + {key = "J", mods = "Alt", action = "ScrollPageDown"}, + {key = "K", mods = "Alt", action = "ScrollPageUp"}, +] + +[scrolling] +history = 20000 +multiplier = 4 diff --git a/config/alacritty/chicago95.toml b/config/alacritty/chicago95.toml new file mode 100644 index 0000000..6902e76 --- /dev/null +++ b/config/alacritty/chicago95.toml @@ -0,0 +1,29 @@ +# Windows 95 Color Scheme +# To have the authentic experience in Chicago95 GTK Theme. + +# Default colors +[colors.primary] +background = '#000000' +foreground = '#C0C7C8' + +# Normal colors +[colors.normal] +black = '#000000' +red = '#A80000' +green = '#00A800' +yellow = '#A85400' +blue = '#0000A8' +magenta = '#A800A8' +cyan = '#00A8A8' +white = '#A8A8A8' + +# Bright colors +[colors.bright] +black = '#545454' +red = '#FC5454' +green = '#54FC54' +yellow = '#FCFC54' +blue = '#5454FC' +magenta = '#FC54FC' +cyan = '#54FCFC' +white = '#FFFFFF' diff --git a/config/cava/config b/config/cava/config new file mode 100644 index 0000000..d96aa22 --- /dev/null +++ b/config/cava/config @@ -0,0 +1,263 @@ +## Configuration file for CAVA. +# Remove the ; to change parameters. + + +[general] + +# Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0 +; mode = normal + +# Accepts only non-negative values. +; framerate = 60 + +# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off +# new as of 0.6.0 autosens of low values (dynamic range) +# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0 +; autosens = 1 +; overshoot = 20 + +# Manual sensitivity in %. If autosens is enabled, this will only be the initial value. +# 200 means double height. Accepts only non-negative values. +; sensitivity = 100 + +# The number of bars (0-512). 0 sets it to auto (fill up console). +# Bars' width and space between bars in number of characters. +; bars = 0 +; bar_width = 2 +; bar_spacing = 1 +# bar_height is only used for output in "noritake" format +; bar_height = 32 + +# For SDL width and space between bars is in pixels, defaults are: +; bar_width = 20 +; bar_spacing = 5 + +# sdl_glsl have these default values, they are only used to calulate max number of bars. +; bar_width = 1 +; bar_spacing = 0 + + +# Lower and higher cutoff frequencies for lowest and highest bars +# the bandwidth of the visualizer. +# +# Note: there is a minimum total bandwidth of 43Mhz x number of bars. +# Cava will automatically increase the higher cutoff if a too low band is specified. +; lower_cutoff_freq = 50 +; higher_cutoff_freq = 10000 + + +# Seconds with no input before cava goes to sleep mode. Cava will not perform FFT or drawing and +# only check for input once per second. Cava will wake up once input is detected. 0 = disable. +; sleep_timer = 0 + + +[input] + +# Audio capturing method. Possible methods are: 'fifo', 'portaudio', 'pipewire', 'alsa', 'pulse', 'sndio', 'oss' or 'shmem' +# Defaults to 'oss', 'sndio', 'pipewire', 'pulse', 'alsa', 'portaudio' or 'fifo', in that order, dependent on what support cava was built with. +# On Mac it defaults to 'portaudio' or 'fifo' +# On windows this is automatic and no input settings are needed. +# +# All input methods uses the same config variable 'source' +# to define where it should get the audio. +# +# For pulseaudio and pipewire 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink +# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them). +# +# For pipewire 'source' will be the object name or object.serial of the device to capture from. +# Both input and output devices are supported. +# +# For alsa 'source' will be the capture device. +# For fifo 'source' will be the path to fifo-file. +# For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address +# +# For sndio 'source' will be a monitor sub-device, e.g. 'snd/0.monitor'. Default: 'default', in which case a device +# should be specified with the environment variable AUDIODEVICE, e.g. on the commandline: AUDIODEVICE=snd/0.monitor cava. +# +# For oss 'source' will be the path to a audio device, e.g. '/dev/dsp2'. Default: '/dev/dsp', i.e. the default audio device. +# README.md contains further information on how to setup CAVA for OSS on FreeBSD. +# +method = pulse +source = auto + +; method = pipewire +; source = auto + +; method = alsa +; source = hw:Loopback,1 + +; method = fifo +; source = /tmp/mpd.fifo + +; method = shmem +; source = /squeezelite-AA:BB:CC:DD:EE:FF + +; method = portaudio +; source = auto + +; method = sndio +; source = default + +; method = oss +; source = /dev/dsp + +# The sample rate and format can be configured for some input methods. Currently +# the following methods support such a configuration: 'fifo', 'pipewire' and 'oss'. +# Other methods ignore these settings. +# +# For 'oss' they are only preferred values, i.e. if the values are not supported +# by the chosen audio device, the device will use other supported values instead. +# Example: 48000 and 32, but the device only supports 44100 and 16, then it will +# use 44100 and 16. +# +; sample_rate = 44100 +; sample_bits = 16 + + +[output] + +# Output method. Can be 'ncurses', 'noncurses', 'raw', 'noritake', 'sdl' +# or 'sdl_glsl'. +# 'noncurses' (default) uses a buffer and cursor movements to only print +# changes from frame to frame in the terminal. Uses less resources and is less +# prone to tearing (vsync issues) than 'ncurses'. +# +# 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data +# stream of the bar heights that can be used to send to other applications. +# 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above. +# +# 'noritake' outputs a bitmap in the format expected by a Noritake VFD display +# in graphic mode. It only support the 3000 series graphical VFDs for now. +# +# 'sdl' uses the Simple DirectMedia Layer to render in a graphical context. +# 'sdl_glsl' uses SDL to create an OpenGL context. Write your own shaders or +# use one of the predefined ones. +; method = noncurses + +# Orientation of the visualization. Can be 'bottom', 'top', 'left' or 'right'. +# Default is 'bottom'. Other orientations are only supported on sdl and ncruses +# output. Note: many fonts have weird glyphs for 'top' and 'right' characters, +# which can make ncurses not look right. +; orientation = bottom + +# Visual channels. Can be 'stereo' or 'mono'. +# 'stereo' mirrors both channels with low frequencies in center. +# 'mono' outputs left to right lowest to highest frequencies. +# 'mono_option' set mono to either take input from 'left', 'right' or 'average'. +# set 'reverse' to 1 to display frequencies the other way around. +; channels = stereo +; mono_option = average +; reverse = 0 + +# Raw output target. A fifo will be created if target does not exist. +; raw_target = /dev/stdout + +# Raw data format. Can be 'binary' or 'ascii'. +; data_format = binary + +# Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530). +; bit_format = 16bit + +# Ascii max value. In 'ascii' mode range will run from 0 to value specified here +; ascii_max_range = 1000 + +# Ascii delimiters. In ascii format each bar and frame is separated by a delimiters. +# Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)). +; bar_delimiter = 59 +; frame_delimiter = 10 + +# sdl window size and position. -1,-1 is centered. +; sdl_width = 1000 +; sdl_height = 500 +; sdl_x = -1 +; sdl_y= -1 +; sdl_full_screen = 0 + +# set label on bars on the x-axis. Can be 'frequency' or 'none'. Default: 'none' +# 'frequency' displays the lower cut off frequency of the bar above. +# Only supported on ncurses and noncurses output. +; xaxis = none + +# enable alacritty synchronized updates. 1 = on, 0 = off +# removes flickering in alacritty terminal emulator. +# defaults to off since the behaviour in other terminal emulators is unknown +; alacritty_sync = 0 + +# Shaders for sdl_glsl, located in $HOME/.config/cava/shaders +; vertex_shader = pass_through.vert +; fragment_shader = bar_spectrum.frag + +; for glsl output mode, keep rendering even if no audio +; continuous_rendering = 0 + +# disable console blank (screen saver) in tty +# (Not supported on FreeBSD) +; disable_blanking = 0 + +[color] + +# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow. +# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires +# a terminal that can change color definitions such as Gnome-terminal or rxvt. +# default is to keep current terminal color +; background = default +; foreground = default + +# SDL and sdl_glsl only support hex code colors, these are the default: +; background = '#111111' +; foreground = '#33ffff' + + +# Gradient mode, only hex defined colors are supported, +# background must also be defined in hex or remain commented out. 1 = on, 0 = off. +# You can define as many as 8 different colors. They range from bottom to top of screen +; gradient = 0 +; gradient_count = 8 +; gradient_color_1 = '#59cc33' +; gradient_color_2 = '#80cc33' +; gradient_color_3 = '#a6cc33' +; gradient_color_4 = '#cccc33' +; gradient_color_5 = '#cca633' +; gradient_color_6 = '#cc8033' +; gradient_color_7 = '#cc5933' +; gradient_color_8 = '#cc3333' + + + +[smoothing] + +# Percentage value for integral smoothing. Takes values from 0 - 100. +# Higher values means smoother, but less precise. 0 to disable. +# DEPRECATED as of 0.8.0, use noise_reduction instead +; integral = 77 + +# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. +; monstercat = 0 +; waves = 0 + +# Set gravity percentage for "drop off". Higher values means bars will drop faster. +# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off". +# DEPRECATED as of 0.8.0, use noise_reduction instead +; gravity = 100 + + +# In bar height, bars that would have been lower that this will not be drawn. +# DEPRECATED as of 0.8.0 +; ignore = 0 + +# Noise reduction, int 0 - 100. default 77 +# the raw visualization is very noisy, this factor adjusts the integral and gravity filters to keep the signal smooth +# 100 will be very slow and smooth, 0 will be fast but noisy. +; noise_reduction = 77 + + +[eq] + +# This one is tricky. You can have as much keys as you want. +# Remember to uncomment more than one key! More keys = more precision. +# Look at readme.md on github for further explanations and examples. +; 1 = 1 # bass +; 2 = 1 +; 3 = 1 # midtone +; 4 = 1 +; 5 = 1 # treble diff --git a/config/fish/config.fish b/config/fish/config.fish new file mode 100644 index 0000000..9dfcbf7 --- /dev/null +++ b/config/fish/config.fish @@ -0,0 +1,42 @@ +# ______ _ _ +# | ____(_) | | +# | |__ _ ___| |__ +# | __| | / __| '_ \ +# | | | \__ \ | | | +# |_| |_|___/_| |_| + + +set TERM "xterm" + + +function fish_greeting + echo "Giant tux in your house." +end + + +function fish_prompt + echo -e "$USER # " +end + +function ssh -d 'kitty compatible ssh command' + switch $TERM + case xterm-kitty + kitty +kitten ssh $argv + case "*" + command ssh $argv + end +end + + +# set PATH "/opt/local/bin:$PATH" + +# aliases +alias ngrok="~/.ngrok" +alias vi="nvim" +alias mpv="mpv --volume=50" +alias m="mpv ~/music/* --volume=50" +alias syncMusic="rsync -vur music/ fileServer:files/music/" +alias htop="htop -C" +alias f="sshfs fileServer:files/ ~/fileServer" +alias fu="fusermount3 -u ~/fileServer" +alias r="sudo rmmod rmi_smbus && sudo modprobe rmi_smbus; sudo sv restart NetworkManager" diff --git a/config/flameshot/flameshot.ini b/config/flameshot/flameshot.ini new file mode 100644 index 0000000..bc0726e --- /dev/null +++ b/config/flameshot/flameshot.ini @@ -0,0 +1,14 @@ +[General] +checkForUpdates=false +contrastOpacity=188 +copyAndCloseAfterUpload=false +disabledTrayIcon=true +drawColor=#ffff00 +historyConfirmationToDelete=false +showDesktopNotification=false +showHelp=false +showSidePanelButton=false +showStartupLaunchMessage=false + +[Shortcuts] +TYPE_ACCEPT=X diff --git a/config/i3/config b/config/i3/config new file mode 100644 index 0000000..8f9d86e --- /dev/null +++ b/config/i3/config @@ -0,0 +1,146 @@ +# some variables +set $mod Mod4 +set $border0 "#606060" +set $border1 "#ffffff" +set $speed 75 + +font pango:MonoCraft NerdFont 10 + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# kill focused window +bindsym $mod+q kill + +# alternatively, you can use the cursor keys: +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+ctrl+j move left $speed px +bindsym $mod+ctrl+k move down $speed px +bindsym $mod+ctrl+l move up $speed px +bindsym $mod+ctrl+semicolon move right $speed px + + + +# mod+h split in horizontal orientation / mod+v split in vertical orientation +bindsym $mod+h split h +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + + +# toggle tiling / floating +bindsym $mod+x floating toggle + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart + +# window resizing +bindsym $mod+Shift+ctrl+semicolon resize shrink width 3 px or 3 ppt +bindsym $mod+Shift+ctrl+l resize grow height 3 px or 3 ppt +bindsym $mod+Shift+ctrl+k resize shrink height 3 px or 3 ppt +bindsym $mod+Shift+ctrl+j resize grow width 3 px or 3 ppt + +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# workspace 1 output HDMI-1 +# workspace 2 output HDMI-1 +# workspace 3 output HDMI-1 +# workspace 4 output HDMI-1 +# workspace 5 output HDMI-1 + + +# workspace 6 output DP-3 +# workspace 7 output DP-3 +# workspace 8 output DP-3 +# workspace 9 output DP-3 +# workspace 10 output DP-3 + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + + +#border +client.unfocused $border0 $border0 $border0 $border0 $border0 +client.focused $border1 $border1 $border1 $border1 $border1 +client.focused_inactive $border0 $border0 $border0 $border0 $border0 +client.urgent $border0 $border0 $border0 $border0 $border0 + +for_window [class=".*"] border pixel 1 +smart_borders on + +#bar { +# position top +# status_command ~/.config/i3/status.sh +# tray_output primary +# colors { +# background #000000 +# statusline #ffffff +# +# focused_workspace $border1 #080808 #ffffff +# inactive_workspace #000000 #000000 #ffffff +# urgent_workspace #000000 #000000 #ffffff +# } +#} + +# AutoStart +exec_always --no-startup-id feh --bg-fill $(cat ~/.config/i3/wallpaper) +exec_always --no-startup-id ~/.config/polybar/launch.sh +exec_always --no-startup-id setxkbmap pl +exec --no-startup-id xcompmgr +exec --no-startup-id sleep 1s; i3-msg restart + +# windows rules +assign [class="firefox"] 1 +assign [class="KeePassXC"] 10 +assign [class="steam"] 2 +assign [class="obs"] 7 +assign [class="TelegramDesktop"] 5 +assign [class="Gajim"] 5 +assign [class="weechat"] 5 +assign [class="transmission"] 6 +#assign [class="radeon-profile"] 5 + +#gaps (i3-gaps) +gaps inner 5 +gaps outer 6 diff --git a/config/i3/status.sh b/config/i3/status.sh new file mode 100755 index 0000000..76587ad --- /dev/null +++ b/config/i3/status.sh @@ -0,0 +1,6 @@ +while true; do + time=$(date +" %d/%m/%Y  %I:%M:%S %p") + audio=$(pamixer --get-volume-human) + echo " $audio $time " + sleep 0.1s +done diff --git a/config/i3/wallpaper b/config/i3/wallpaper new file mode 100644 index 0000000..3098610 --- /dev/null +++ b/config/i3/wallpaper @@ -0,0 +1 @@ +/home/user/.config/i3/wallpaper.png diff --git a/config/i3/wallpaper.png b/config/i3/wallpaper.png new file mode 100644 index 0000000..5292f95 Binary files /dev/null and b/config/i3/wallpaper.png differ diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf new file mode 100644 index 0000000..b7e2e50 --- /dev/null +++ b/config/kitty/kitty.conf @@ -0,0 +1,14 @@ +background #000 +foreground #c1c1c1 +font_family Monocraft Nerd Font +font_size 13 +shell fish +cursor_shape block +window_padding_width 3 + +confirm_os_window_close 0 +shell_integration no-cursor + +# Shortcuts +map ctrl+equal change_font_size all +1.0 +map ctrl+minus change_font_size all -1.0 diff --git a/config/lf/bookmarks b/config/lf/bookmarks new file mode 100644 index 0000000..abea85c --- /dev/null +++ b/config/lf/bookmarks @@ -0,0 +1,5 @@ +/mnt/ +/mnt/disk/anime +/tmp +~/ +~/.config diff --git a/config/lf/bookmarks.sh b/config/lf/bookmarks.sh new file mode 100755 index 0000000..161cfcc --- /dev/null +++ b/config/lf/bookmarks.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +x=$(cat ~/.config/lf/bookmarks | fzf) +echo $x diff --git a/config/lf/cleaner b/config/lf/cleaner new file mode 100755 index 0000000..35f02d4 --- /dev/null +++ b/config/lf/cleaner @@ -0,0 +1,2 @@ +#!/bin/sh +[ -n "$FIFO_UEBERZUG" ] && printf '{"action":"remove","identifier":"preview"}\n' >"$FIFO_UEBERZUG" diff --git a/config/lf/lfrc b/config/lf/lfrc new file mode 100644 index 0000000..c5a9962 --- /dev/null +++ b/config/lf/lfrc @@ -0,0 +1,37 @@ +set previewer ~/.config/lf/previewer +set cleaner ~/.config/lf/cleaner +set sortby time +set info time +set reverse true +set period 1 + +map D delete +map H set hidden! +map I sxivT +map b bookmarks +map m mkdir + + +cmd bookmarks ${{ + x=$(~/.config/lf/bookmarks.sh) + lf -remote "send cd $x" +}} + +cmd mkdir ${{ + printf "mkdir: "; read x; mkdir $x +}} + +cmd open ${{ + case $(file --mime-type "$f" -bL) in + text/*|json) $EDITOR "$f" ;; + video/* | audio/*) echo "Playing: $f"; mpv "$f" ;; + audio/* | audio/*) echo "Playing: $f"; mpv "$f" ;; + image/*) sxiv -a "$f" & ;; + *) xdg-open "$f" ;; + esac +}} + +cmd sxivT ${{ + cd $PWD + sxiv -t . +}} diff --git a/config/lf/previewer b/config/lf/previewer new file mode 100755 index 0000000..c408d7f --- /dev/null +++ b/config/lf/previewer @@ -0,0 +1,55 @@ +#!/bin/sh +draw() { + path="$(readlink -f -- "$1" | sed 's/\\/\\\\/g;s/"/\\"/g')" + printf '{"action":"add","identifier":"preview","x":%d,"y":%d,"width":%d,"height":%d,"scaler":"contain","scaling_position_x":0.5,"scaling_position_y":0.5,"path":"%s"}\n' \ + "$x" "$y" "$width" "$height" "$path" >"$FIFO_UEBERZUG" + exit 1 +} + +hash() { + cache="$HOME/.cache/lf/$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f -- "$1")" | sha256sum | cut -d' ' -f1).jpg" +} + +cache() { + if ! [ -f "$cache" ]; then + dir="$(dirname -- "$cache")" + [ -d "$dir" ] || mkdir -p -- "$dir" + "$@" + fi + draw "$cache" +} + +file="$1" +width="$2" +height="$3" +x="$4" +y="$5" + +case "$(file -Lb --mime-type -- "$file")" in + image/*) + if [ -n "$FIFO_UEBERZUG" ]; then + # ueberzug doesn't handle image orientation correctly + orientation="$(magick identify -format '%[orientation]\n' -- "$file")" + if [ -n "$orientation" ] \ + && [ "$orientation" != Undefined ] \ + && [ "$orientation" != TopLeft ]; then + hash "$file" + cache magick -- "$file" -auto-orient "$cache" + else + draw "$file" + fi + fi + ;; + video/*) + if [ -n "$FIFO_UEBERZUG" ]; then + hash "$file" + cache ffmpegthumbnailer -i "$file" -o "$cache" -s 0 + fi + ;; + text/*) + exec cat "$file" + ;; +esac + +file -Lb -- "$file" | fold -s -w "$width" +exit 0 diff --git a/config/mimeapps.list b/config/mimeapps.list new file mode 100644 index 0000000..c2724a9 --- /dev/null +++ b/config/mimeapps.list @@ -0,0 +1,5 @@ +[Default Applications] +image/jpeg=sxiv.desktop +image/jpg=sxiv.desktop +image/png=sxiv.desktop +image/webp=sxiv.desktop diff --git a/config/mpv/input.conf b/config/mpv/input.conf new file mode 100644 index 0000000..31bd610 --- /dev/null +++ b/config/mpv/input.conf @@ -0,0 +1,13 @@ +# Go to previous or next music +Shift+j playlist-prev +Shift+k playlist-next + +h seek -5 +l seek 5 + +# Control Volume +j add volume -2 +k add volume 2 + +Alt+j add video-zoom -0.25 +Alt+k add video-zoom 0.25 diff --git a/config/mpv/mpv.conf b/config/mpv/mpv.conf new file mode 100644 index 0000000..f97ba4d --- /dev/null +++ b/config/mpv/mpv.conf @@ -0,0 +1,4 @@ +volume=50 +volume-max=500 +audio-display=no +keep-open diff --git a/config/neofetch/config.conf b/config/neofetch/config.conf new file mode 100644 index 0000000..0791bbf --- /dev/null +++ b/config/neofetch/config.conf @@ -0,0 +1,865 @@ +# See this wiki page for more info: +# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info +print_info() { + prin "<====( $USER@$HOSTNAME )====>" + prin "- - - - - - System - - - - - -" + info "OS" distro + info "Host" model + info "Kernel" kernel + info "Uptime" uptime + info "Packages" packages + info "Shell" shell + info "Resolution" resolution + info "DE" de + info "WM" wm + info "Terminal" term + info "Terminal Font" term_font + prin "- - - - - - Hardware - - - - - -" + info "CPU" cpu + info "GPU" gpu + info "Memory" memory + info "Disk" disk +} + +# Title + + +# Hide/Show Fully qualified domain name. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --title_fqdn +title_fqdn="off" + + +# Kernel + + +# Shorten the output of the kernel function. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --kernel_shorthand +# Supports: Everything except *BSDs (except PacBSD and PC-BSD) +# +# Example: +# on: '4.8.9-1-ARCH' +# off: 'Linux 4.8.9-1-ARCH' +kernel_shorthand="on" + + +# Distro + + +# Shorten the output of the distro function +# +# Default: 'off' +# Values: 'on', 'tiny', 'off' +# Flag: --distro_shorthand +# Supports: Everything except Windows and Haiku +distro_shorthand="off" + +# Show/Hide OS Architecture. +# Show 'x86_64', 'x86' and etc in 'Distro:' output. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --os_arch +# +# Example: +# on: 'Arch Linux x86_64' +# off: 'Arch Linux' +os_arch="on" + + +# Uptime + + +# Shorten the output of the uptime function +# +# Default: 'on' +# Values: 'on', 'tiny', 'off' +# Flag: --uptime_shorthand +# +# Example: +# on: '2 days, 10 hours, 3 mins' +# tiny: '2d 10h 3m' +# off: '2 days, 10 hours, 3 minutes' +uptime_shorthand="on" + + +# Memory + + +# Show memory percentage in output. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --memory_percent +# +# Example: +# on: '1801MiB / 7881MiB (22%)' +# off: '1801MiB / 7881MiB' +memory_percent="off" + +# Change memory output unit. +# +# Default: 'mib' +# Values: 'kib', 'mib', 'gib' +# Flag: --memory_unit +# +# Example: +# kib '1020928KiB / 7117824KiB' +# mib '1042MiB / 6951MiB' +# gib: ' 0.98GiB / 6.79GiB' +memory_unit="mib" + + +# Packages + + +# Show/Hide Package Manager names. +# +# Default: 'tiny' +# Values: 'on', 'tiny' 'off' +# Flag: --package_managers +# +# Example: +# on: '998 (pacman), 8 (flatpak), 4 (snap)' +# tiny: '908 (pacman, flatpak, snap)' +# off: '908' +package_managers="on" + + +# Shell + + +# Show the path to $SHELL +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --shell_path +# +# Example: +# on: '/bin/bash' +# off: 'bash' +shell_path="off" + +# Show $SHELL version +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --shell_version +# +# Example: +# on: 'bash 4.4.5' +# off: 'bash' +shell_version="on" + + +# CPU + + +# CPU speed type +# +# Default: 'bios_limit' +# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. +# Flag: --speed_type +# Supports: Linux with 'cpufreq' +# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. +speed_type="bios_limit" + +# CPU speed shorthand +# +# Default: 'off' +# Values: 'on', 'off'. +# Flag: --speed_shorthand +# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz +# +# Example: +# on: 'i7-6500U (4) @ 3.1GHz' +# off: 'i7-6500U (4) @ 3.100GHz' +speed_shorthand="off" + +# Enable/Disable CPU brand in output. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --cpu_brand +# +# Example: +# on: 'Intel i7-6500U' +# off: 'i7-6500U (4)' +cpu_brand="on" + +# CPU Speed +# Hide/Show CPU speed. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --cpu_speed +# +# Example: +# on: 'Intel i7-6500U (4) @ 3.1GHz' +# off: 'Intel i7-6500U (4)' +cpu_speed="on" + +# CPU Cores +# Display CPU cores in output +# +# Default: 'logical' +# Values: 'logical', 'physical', 'off' +# Flag: --cpu_cores +# Support: 'physical' doesn't work on BSD. +# +# Example: +# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) +# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) +# off: 'Intel i7-6500U @ 3.1GHz' +cpu_cores="logical" + +# CPU Temperature +# Hide/Show CPU temperature. +# Note the temperature is added to the regular CPU function. +# +# Default: 'off' +# Values: 'C', 'F', 'off' +# Flag: --cpu_temp +# Supports: Linux, BSD +# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable +# coretemp kernel module. This only supports newer Intel processors. +# +# Example: +# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' +# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' +# off: 'Intel i7-6500U (4) @ 3.1GHz' +cpu_temp="off" + + +# GPU + + +# Enable/Disable GPU Brand +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gpu_brand +# +# Example: +# on: 'AMD HD 7950' +# off: 'HD 7950' +gpu_brand="on" + +# Which GPU to display +# +# Default: 'all' +# Values: 'all', 'dedicated', 'integrated' +# Flag: --gpu_type +# Supports: Linux +# +# Example: +# all: +# GPU1: AMD HD 7950 +# GPU2: Intel Integrated Graphics +# +# dedicated: +# GPU1: AMD HD 7950 +# +# integrated: +# GPU1: Intel Integrated Graphics +gpu_type="all" + + +# Resolution + + +# Display refresh rate next to each monitor +# Default: 'off' +# Values: 'on', 'off' +# Flag: --refresh_rate +# Supports: Doesn't work on Windows. +# +# Example: +# on: '1920x1080 @ 60Hz' +# off: '1920x1080' +refresh_rate="off" + + +# Gtk Theme / Icons / Font + + +# Shorten output of GTK Theme / Icons / Font +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --gtk_shorthand +# +# Example: +# on: 'Numix, Adwaita' +# off: 'Numix [GTK2], Adwaita [GTK3]' +gtk_shorthand="off" + + +# Enable/Disable gtk2 Theme / Icons / Font +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gtk2 +# +# Example: +# on: 'Numix [GTK2], Adwaita [GTK3]' +# off: 'Adwaita [GTK3]' +gtk2="on" + +# Enable/Disable gtk3 Theme / Icons / Font +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gtk3 +# +# Example: +# on: 'Numix [GTK2], Adwaita [GTK3]' +# off: 'Numix [GTK2]' +gtk3="on" + + +# IP Address + + +# Website to ping for the public IP +# +# Default: 'http://ident.me' +# Values: 'url' +# Flag: --ip_host +public_ip_host="http://ident.me" + +# Public IP timeout. +# +# Default: '2' +# Values: 'int' +# Flag: --ip_timeout +public_ip_timeout=2 + +# Local IP interface +# +# Default: 'auto' (interface of default route) +# Values: 'auto', 'en0', 'en1' +# Flag: --ip_interface +local_ip_interface=('auto') + + +# Desktop Environment + + +# Show Desktop Environment version +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --de_version +de_version="on" + + +# Disk + + +# Which disks to display. +# The values can be any /dev/sdXX, mount point or directory. +# NOTE: By default we only show the disk info for '/'. +# +# Default: '/' +# Values: '/', '/dev/sdXX', '/path/to/drive'. +# Flag: --disk_show +# +# Example: +# disk_show=('/' '/dev/sdb1'): +# 'Disk (/): 74G / 118G (66%)' +# 'Disk (/mnt/Videos): 823G / 893G (93%)' +# +# disk_show=('/'): +# 'Disk (/): 74G / 118G (66%)' +# +disk_show=('/') + +# Disk subtitle. +# What to append to the Disk subtitle. +# +# Default: 'mount' +# Values: 'mount', 'name', 'dir', 'none' +# Flag: --disk_subtitle +# +# Example: +# name: 'Disk (/dev/sda1): 74G / 118G (66%)' +# 'Disk (/dev/sdb2): 74G / 118G (66%)' +# +# mount: 'Disk (/): 74G / 118G (66%)' +# 'Disk (/mnt/Local Disk): 74G / 118G (66%)' +# 'Disk (/mnt/Videos): 74G / 118G (66%)' +# +# dir: 'Disk (/): 74G / 118G (66%)' +# 'Disk (Local Disk): 74G / 118G (66%)' +# 'Disk (Videos): 74G / 118G (66%)' +# +# none: 'Disk: 74G / 118G (66%)' +# 'Disk: 74G / 118G (66%)' +# 'Disk: 74G / 118G (66%)' +disk_subtitle="mount" + +# Disk percent. +# Show/Hide disk percent. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --disk_percent +# +# Example: +# on: 'Disk (/): 74G / 118G (66%)' +# off: 'Disk (/): 74G / 118G' +disk_percent="on" + + +# Song + + +# Manually specify a music player. +# +# Default: 'auto' +# Values: 'auto', 'player-name' +# Flag: --music_player +# +# Available values for 'player-name': +# +# amarok +# audacious +# banshee +# bluemindo +# clementine +# cmus +# deadbeef +# deepin-music +# dragon +# elisa +# exaile +# gnome-music +# gmusicbrowser +# gogglesmm +# guayadeque +# io.elementary.music +# iTunes +# Music +# juk +# lollypop +# MellowPlayer +# mocp +# mopidy +# mpd +# muine +# netease-cloud-music +# olivia +# playerctl +# pogo +# pragha +# qmmp +# quodlibet +# rhythmbox +# sayonara +# smplayer +# spotify +# strawberry +# tauonmb +# tomahawk +# vlc +# xmms2d +# xnoise +# yarock +music_player="auto" + +# Format to display song information. +# +# Default: '%artist% - %album% - %title%' +# Values: '%artist%', '%album%', '%title%' +# Flag: --song_format +# +# Example: +# default: 'Song: Jet - Get Born - Sgt Major' +song_format="%artist% - %album% - %title%" + +# Print the Artist, Album and Title on separate lines +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --song_shorthand +# +# Example: +# on: 'Artist: The Fratellis' +# 'Album: Costello Music' +# 'Song: Chelsea Dagger' +# +# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger' +song_shorthand="off" + +# 'mpc' arguments (specify a host, password etc). +# +# Default: '' +# Example: mpc_args=(-h HOST -P PASSWORD) +mpc_args=() + + +# Text Colors + + +# Text Colors +# +# Default: 'distro' +# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' +# Flag: --colors +# +# Each number represents a different part of the text in +# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' +# +# Example: +# colors=(distro) - Text is colored based on Distro colors. +# colors=(4 6 1 8 8 6) - Text is colored in the order above. +colors=(distro) + + +# Text Options + + +# Toggle bold text +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --bold +bold="on" + +# Enable/Disable Underline +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --underline +underline_enabled="on" + +# Underline character +# +# Default: '-' +# Values: 'string' +# Flag: --underline_char +underline_char="-" + + +# Info Separator +# Replace the default separator with the specified string. +# +# Default: ':' +# Flag: --separator +# +# Example: +# separator="->": 'Shell-> bash' +# separator=" =": 'WM = dwm' +separator=":" + + +# Color Blocks + + +# Color block range +# The range of colors to print. +# +# Default: '0', '15' +# Values: 'num' +# Flag: --block_range +# +# Example: +# +# Display colors 0-7 in the blocks. (8 colors) +# neofetch --block_range 0 7 +# +# Display colors 0-15 in the blocks. (16 colors) +# neofetch --block_range 0 15 +block_range=(0 15) + +# Toggle color blocks +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --color_blocks +color_blocks="on" + +# Color block width in spaces +# +# Default: '3' +# Values: 'num' +# Flag: --block_width +block_width=3 + +# Color block height in lines +# +# Default: '1' +# Values: 'num' +# Flag: --block_height +block_height=1 + +# Color Alignment +# +# Default: 'auto' +# Values: 'auto', 'num' +# Flag: --col_offset +# +# Number specifies how far from the left side of the terminal (in spaces) to +# begin printing the columns, in case you want to e.g. center them under your +# text. +# Example: +# col_offset="auto" - Default behavior of neofetch +# col_offset=7 - Leave 7 spaces then print the colors +col_offset="auto" + +# Progress Bars + + +# Bar characters +# +# Default: '-', '=' +# Values: 'string', 'string' +# Flag: --bar_char +# +# Example: +# neofetch --bar_char 'elapsed' 'total' +# neofetch --bar_char '-' '=' +bar_char_elapsed="-" +bar_char_total="=" + +# Toggle Bar border +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --bar_border +bar_border="on" + +# Progress bar length in spaces +# Number of chars long to make the progress bars. +# +# Default: '15' +# Values: 'num' +# Flag: --bar_length +bar_length=15 + +# Progress bar colors +# When set to distro, uses your distro's logo colors. +# +# Default: 'distro', 'distro' +# Values: 'distro', 'num' +# Flag: --bar_colors +# +# Example: +# neofetch --bar_colors 3 4 +# neofetch --bar_colors distro 5 +bar_color_elapsed="distro" +bar_color_total="distro" + + +# Info display +# Display a bar with the info. +# +# Default: 'off' +# Values: 'bar', 'infobar', 'barinfo', 'off' +# Flags: --memory_display +# --battery_display +# --disk_display +# +# Example: +# bar: '[---=======]' +# infobar: 'info [---=======]' +# barinfo: '[---=======] info' +# off: 'info' +memory_display="off" +battery_display="off" +disk_display="off" + + +# Backend Settings + + +# Image backend. +# +# Default: 'ascii' +# Values: 'ascii', 'caca', 'catimg', 'chafa', 'jp2a', 'iterm2', 'off', +# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty', 'ueberzug', +# 'viu' + +# Flag: --backend +image_backend="ascii" + +# Image Source +# +# Which image or ascii file to display. +# +# Default: 'auto' +# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' +# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")' +# Flag: --source +# +# NOTE: 'auto' will pick the best image source for whatever image backend is used. +# In ascii mode, distro ascii art will be used and in an image mode, your +# wallpaper will be used. +image_source="auto" + + +# Ascii Options + + +# Ascii distro +# Which distro's ascii art to display. +# +# Default: 'auto' +# Values: 'auto', 'distro_name' +# Flag: --ascii_distro +# NOTE: AIX, Hash, Alpine, AlterLinux, Amazon, Anarchy, Android, instantOS, +# Antergos, antiX, "AOSC OS", "AOSC OS/Retro", Apricity, ArchCraft, +# ArcoLinux, ArchBox, ARCHlabs, ArchStrike, XFerience, ArchMerge, Arch, +# Artix, Arya, Bedrock, Bitrig, BlackArch, BLAG, BlankOn, BlueLight, +# Bodhi, bonsai, BSD, BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS, +# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, Condres, +# Container_Linux, Crystal Linux, CRUX, Cucumber, dahlia, Debian, Deepin, +# DesaOS, Devuan, DracOS, DarkOs, Itc, DragonFly, Drauger, Elementary, +# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD, +# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, +# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, HydroOS +# Hyperbola, iglunix, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, Korora, +# KSLinux, Kubuntu, LEDE, LaxerOS, LibreELEC, LFS, Linux_Lite, LMDE, +# Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, Manjaro, TeArch, Maui, +# Mer, Minix, LinuxMint, Live_Raizo, MX_Linux, Namib, Neptune, NetBSD, +# Netrunner, Nitrux, NixOS, Nurunner, NuTyX, OBRevenge, OpenBSD, +# openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, OpenWrt, +# osmc, Oracle, OS Elbrus, PacBSD, Parabola, Pardus, Parrot, Parsix, +# TrueOS, PCLinuxOS, Pengwin, Peppermint, Pisi, popos, Porteus, PostMarketOS, +# Proxmox, PuffOS, Puppy, PureOS, Qubes, Qubyt, Quibian, Radix, Raspbian, +# Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith, +# Rocky, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor, +# SereneLinux, SharkLinux, Siduction, SkiffOS, Slackware, SliTaz, SmartOS, +# Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap, t2, +# openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel, +# Ubuntu-Cinnamon, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, +# Ubuntu-Studio, Ubuntu, Univention, Venom, Void, VNux, LangitKetujuh, semc, +# Obarun, windows10, Windows7, Xubuntu, Zorin, and IRIX have ascii logos. +# NOTE: Arch, Ubuntu, Redhat, Fedora and Dragonfly have 'old' logo variants. +# Use '{distro name}_old' to use the old logos. +# NOTE: Ubuntu has flavor variants. +# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME, +# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors. +# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu, +# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android, +# Artix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola, +# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS, +# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian, +# postmarketOS, and Void have a smaller logo variant. +# Use '{distro name}_small' to use the small variants. +ascii_distro="auto" + +# Ascii Colors +# +# Default: 'distro' +# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' +# Flag: --ascii_colors +# +# Example: +# ascii_colors=(distro) - Ascii is colored based on Distro colors. +# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. +ascii_colors=(distro) + +# Bold ascii logo +# Whether or not to bold the ascii logo. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --ascii_bold +ascii_bold="on" + + +# Image Options + + +# Image loop +# Setting this to on will make neofetch redraw the image constantly until +# Ctrl+C is pressed. This fixes display issues in some terminal emulators. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --loop +image_loop="off" + +# Thumbnail directory +# +# Default: '~/.cache/thumbnails/neofetch' +# Values: 'dir' +thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" + +# Crop mode +# +# Default: 'normal' +# Values: 'normal', 'fit', 'fill' +# Flag: --crop_mode +# +# See this wiki page to learn about the fit and fill options. +# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F +crop_mode="normal" + +# Crop offset +# Note: Only affects 'normal' crop mode. +# +# Default: 'center' +# Values: 'northwest', 'north', 'northeast', 'west', 'center' +# 'east', 'southwest', 'south', 'southeast' +# Flag: --crop_offset +crop_offset="center" + +# Image size +# The image is half the terminal width by default. +# +# Default: 'auto' +# Values: 'auto', '00px', '00%', 'none' +# Flags: --image_size +# --size +image_size="auto" + +# Catimg block size. +# Control the resolution of catimg. +# +# Default: '2' +# Values: '1', '2' +# Flags: --catimg_size +catimg_size="2" + +# Gap between image and text +# +# Default: '3' +# Values: 'num', '-num' +# Flag: --gap +gap=3 + +# Image offsets +# Only works with the w3m backend. +# +# Default: '0' +# Values: 'px' +# Flags: --xoffset +# --yoffset +yoffset=0 +xoffset=0 + +# Image background color +# Only works with the w3m backend. +# +# Default: '' +# Values: 'color', 'blue' +# Flag: --bg_color +background_color= + + +# Misc Options + +# Stdout mode +# Turn off all colors and disables image backend (ASCII/Image). +# Useful for piping into another command. +# Default: 'off' +# Values: 'on', 'off' +stdout="off" diff --git a/config/nvim/_init.vim b/config/nvim/_init.vim new file mode 100644 index 0000000..8ef79bd --- /dev/null +++ b/config/nvim/_init.vim @@ -0,0 +1,2 @@ +" generate basic code structure +autocmd BufNewFile *.html 0r ~/.config/nvim/templates/skel.html diff --git a/config/nvim/colors/true-monochrome.vim b/config/nvim/colors/true-monochrome.vim new file mode 100644 index 0000000..ef53d21 --- /dev/null +++ b/config/nvim/colors/true-monochrome.vim @@ -0,0 +1,85 @@ +"" thanks to greygrey from themebow for a running start! +"" http://themebow.com/theme/313 +"" find me online at: +"" https://github.com/ryanpcmcquen/true-monochrome_vim + +"" clear out any previous highlighting +hi clear +"" if vim is v5.8 or greater, reset syntax +if version > 580 + if exists("syntax_on") + syntax reset + endif +endif + +"" give it a name and set the background +let colors_name="true-monochrome" +set background=dark + +"" +"" now, on to the good stuff! +"" + +"" black fg w/white bg +hi Cursor guifg=#000000 guibg=#FFFFFF ctermfg=black ctermbg=white gui=NONE cterm=NONE +hi IncSearch guifg=#000000 guibg=#FFFFFF ctermfg=black ctermbg=white gui=ITALIC cterm=NONE +hi Search guifg=#000000 guibg=#FFFFFF ctermfg=black ctermbg=white gui=ITALIC cterm=NONE +hi Visual guifg=#000000 guibg=#FFFFFF ctermfg=black ctermbg=white gui=ITALIC cterm=NONE +hi VisualNOS guifg=#000000 guibg=#FFFFFF ctermfg=black ctermbg=white gui=ITALIC cterm=NONE + +"" grey fg w/white bg +hi CursorColumn guifg=#A0A0A0 guibg=#FFFFFF ctermfg=grey ctermbg=white gui=NONE cterm=NONE +hi CursorLine guifg=#A0A0A0 guibg=#FFFFFF ctermfg=grey ctermbg=white gui=NONE cterm=NONE + +"" grey fg w/black bg +hi Comment guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=ITALIC cterm=NONE +hi DiffChange guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi DiffDelete guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi DiffText guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi Directory guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi Error guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi Folded guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi Function guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi Identifier guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi Ignore guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi Label guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi LineNr guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi MatchParen guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi ModeMsg guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi MoreMsg guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi NonText guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi Normal guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi PmenuSbar guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi PmenuSel guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=ITALIC cterm=NONE +hi PmenuThumb guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi PreProc guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi Special guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi SpecialKey guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=ITALIC cterm=NONE +hi Statement guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi StatusLine guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi StatusLineNC guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=ITALIC cterm=NONE +hi StorageClass guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi Structure guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi TabLine guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi TabLineFill guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi TabLineSel guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi Title guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi Todo guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi Todo guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=UNDERLINE cterm=UNDERLINE +hi Type guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi TypeDef guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi Underlined guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=UNDERLINE cterm=UNDERLINE +hi VertSplit guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi WarningMsg guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi WildMenu guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE +hi cucumberTags guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi htmlTagN guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=BOLD cterm=BOLD +hi rubySymbol guifg=#A0A0A0 guibg=#000000 ctermfg=grey ctermbg=black gui=NONE cterm=NONE + +"" white fg w/black bg +hi Constant guifg=#FFFFFF guibg=#000000 ctermfg=white ctermbg=black gui=NONE cterm=NONE +hi DiffAdd guifg=#FFFFFF guibg=#000000 ctermfg=white ctermbg=black gui=NONE cterm=NONE +hi Number guifg=#FFFFFF guibg=#000000 ctermfg=white ctermbg=black gui=NONE cterm=NONE +hi Pmenu guifg=#FFFFFF guibg=#000000 ctermfg=white ctermbg=black gui=BOLD cterm=BOLD +hi String guifg=#FFFFFF guibg=#000000 ctermfg=white ctermbg=black gui=NONE cterm=NONE + diff --git a/config/nvim/init.lua b/config/nvim/init.lua new file mode 100644 index 0000000..4448560 --- /dev/null +++ b/config/nvim/init.lua @@ -0,0 +1,14 @@ +require('plugins/packer') +require('plugins/plug') +require('keymaps') +require('lualine').setup() + +vim.cmd('source ~/.config/nvim/_init.vim') + +local opt = vim.opt + +opt.number = true +opt.mouse = "a" +opt.syntax = "on" + +vim.cmd.colorscheme "true-monochrome" diff --git a/config/nvim/lua/keymaps.lua b/config/nvim/lua/keymaps.lua new file mode 100644 index 0000000..f963caf --- /dev/null +++ b/config/nvim/lua/keymaps.lua @@ -0,0 +1,27 @@ +local keymap = vim.api.nvim_set_keymap +local opts = { noremap = true, silent = true } + + +-- undo and rendo file content +keymap("n", "", ":undo", opts) +keymap("n", "", ":redo", opts) + +-- save file +keymap("n", "", ":w", opts) + +-- open file manager +keymap("n", "", ":Files", opts) + +-- close tab +keymap('n', '', ':BufferClose', opts) + +-- move between tabs +keymap('n', '', ':BufferPrevious', opts) +keymap('n', '', ':BufferNext', opts) + +-- open cmd to create new file +keymap('n', '', ':e ', opts) + +-- install plugins +keymap('n', '', ':PackerInstall', opts) -- packer +keymap('n', '', ':PlugInstall', opts) -- plug diff --git a/config/nvim/lua/plugins/packer.lua b/config/nvim/lua/plugins/packer.lua new file mode 100644 index 0000000..67a9da7 --- /dev/null +++ b/config/nvim/lua/plugins/packer.lua @@ -0,0 +1,15 @@ +return require("packer").startup(function(use) + use 'wbthomason/packer.nvim' + + use { + 'nvim-lualine/lualine.nvim', + requires = { 'kyazdani42/nvim-web-devicons', opt = true } + } + + use { + 'romgrk/barbar.nvim', + requires = {'kyazdani42/nvim-web-devicons'} + } + + use { "catppuccin/nvim", as = "catppuccin" } +end) diff --git a/config/nvim/lua/plugins/plug.lua b/config/nvim/lua/plugins/plug.lua new file mode 100644 index 0000000..e4c17c3 --- /dev/null +++ b/config/nvim/lua/plugins/plug.lua @@ -0,0 +1,9 @@ +local Plug = vim.fn['plug#'] + +vim.call('plug#begin', '~/.config/nvim/.plugged') + Plug 'jiangmiao/auto-pairs' + Plug 'https://github.com/tpope/vim-commentary' + Plug 'https://github.com/romainl/vim-cool' + Plug 'nvim-tree/nvim-web-devicons' + Plug 'junegunn/fzf.vim' +vim.call('plug#end') diff --git a/config/nvim/templates/skel.html b/config/nvim/templates/skel.html new file mode 100644 index 0000000..45f38c9 --- /dev/null +++ b/config/nvim/templates/skel.html @@ -0,0 +1,12 @@ + + + + + + + title + + + + + diff --git a/config/pcmanfm/default/pcmanfm.conf b/config/pcmanfm/default/pcmanfm.conf new file mode 100644 index 0000000..c6eead0 --- /dev/null +++ b/config/pcmanfm/default/pcmanfm.conf @@ -0,0 +1,26 @@ +[config] +bm_open_method=0 + +[volume] +mount_on_startup=1 +mount_removable=1 +autorun=1 + +[ui] +always_show_tabs=0 +max_tab_chars=32 +win_width=945 +win_height=1030 +splitter_pos=150 +media_in_new_tab=0 +desktop_folder_new_win=0 +change_tab_on_drop=1 +close_on_unmount=1 +focus_previous=0 +side_pane_mode=hidden;places +view_mode=icon +show_hidden=0 +sort=mtime;descending; +toolbar= +show_statusbar=1 +pathbar_mode_buttons=0 diff --git a/config/polybar/config b/config/polybar/config new file mode 100644 index 0000000..3079f16 --- /dev/null +++ b/config/polybar/config @@ -0,0 +1,127 @@ +; ::::::::: ::: ::: ::::::::: ::: ::::::::: ::: ::::::::: +; :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: +; +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +; +#+ +:+ +#+ +:+ +#++:++#+ +#++:++#++: +#++:++#+ +#++:++#++: +#++:++#: +; +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +; #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# +; ######### ######## ### ### ### ######### ### ### ### ### + +[colors] +background = #000 +foreground = #d4d4d4 +alert = #000 +balls = #d4d4d4 + +[bar/main] +width = 100% +height = 26 +radius = 0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 1 + +border-size = 0 +border-color = #00000000 + +padding-left = 1 +padding-right = 1 + +module-margin-left = 1 +module-margin-right = 1 + +font-0 = Monocraft Nerd Font:style=Book:pixelsize=11;2 + +modules-left = i3 xwindow +modules-center = +modules-right = cpu pulseaudio date + +[module/xkeyboard] +type = internal/xkeyboard + +; List of indicators to ignore +blacklist-0 = num lock +blacklist-1 = scroll lock + +label-indicator-on = "(CapsLook)" + +[module/xwindow] +type = internal/xwindow +label = %title:0:30:...% + + +[module/i3] +type = internal/i3 +format = " " +index-sort = true +wrapping-scroll = false +pin-workspaces = true + + +label-mode-padding = 0 +label-mode-foreground = {colors.balls} +label-mode-background = #000 + +label-focused = %index% +label-focused-background = #000 +label-focused-padding = 1 +label-focused-underline = #d4d4d4 + +label-unfocused = %index% +label-unfocused-padding = 1 + +label-visible = %index% +label-visible-background = #000 +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +label-urgent = %index% +label-urgent-background = ${colors.alert} +label-urgent-padding = 1 + + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = " " +label = %percentage:2%% + + +[module/date] +type = internal/date +interval = 1.0 +date = " %d/%m/%y  %I:%M:%S %p" + +[module/battery] +type = internal/battery +full-at = 99 +low-at = 5 +battery = BAT1 +adapter = AC +poll-interval = 0.5 +time-format = %H:%M +format-charging = +format-discharging = +label-charging = Charging %percentage%% +label-discharging = %percentage%% +label-full =  %percentage%% + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume = +label-volume = " %percentage%%" +label-volume-foreground = ${root.foreground} + +label-muted = "婢 muted" +label-muted-foreground = #50525f + + +[settings] +screenchange-reload = true + +[global/wm] +margin-top = 5 +margin-bottom = 5 diff --git a/config/polybar/launch.sh b/config/polybar/launch.sh new file mode 100755 index 0000000..9f26077 --- /dev/null +++ b/config/polybar/launch.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +pkill polybar + +polybar main &> /dev/null +rm ~/core diff --git a/config/ranger/rc.conf b/config/ranger/rc.conf new file mode 100644 index 0000000..5726c1d --- /dev/null +++ b/config/ranger/rc.conf @@ -0,0 +1,4 @@ +set preview_images true +set preview_images_method ueberzug +chain set sort=mtime +set sort_reverse=False diff --git a/config/ranger/rifle.conf b/config/ranger/rifle.conf new file mode 100644 index 0000000..29ef15e --- /dev/null +++ b/config/ranger/rifle.conf @@ -0,0 +1,2 @@ +ext png|jpg|gif = sxiv -a "$@" +ext webm|mp4|mkv|mp3|ogg|m4a = mpv "$@" diff --git a/config/skhd/skhdrc b/config/skhd/skhdrc new file mode 100644 index 0000000..23c6a58 --- /dev/null +++ b/config/skhd/skhdrc @@ -0,0 +1,7 @@ +cmd - return : /Applications/iTerm\ 2.app/Contents/MacOS/iTerm2 + +cmd - o : open ~ + +cmd - b: /Applications/Firefox.app/Contents/MacOS/firefox + +cmd - i : bookmarks diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc new file mode 100644 index 0000000..d6fe1dc --- /dev/null +++ b/config/sxhkd/sxhkdrc @@ -0,0 +1,38 @@ +super + Return + st +super + d + dmenu_run -l 25 +super + b + firefox + +super + o + st -e lfimg +super + shift + o + pcmanfm +super + a + st -e pulsemixer + +super + p + flameshot gui -p ~/images/screenshots +super + shift + p + flameshot full -p ~/images/screenshots +super + ctrl + p + flameshot gui -c -p ~/images/screenshots +super + shift + ctrl + p + flameshot full -c -p ~/images/screenshots + +super + i + bookmarks +super + shift + l + i3lock -u -e -i /home/user/images/itsucks.png + +super + {comma,period} + pactl set-sink-volume @DEFAULT_SINK@ {-5%, +5%} +super + m + pactl set-sink-mute @DEFAULT_SINK@ toggle + + +#super + {1, 2, 3, 4, 5, 6} +# wmctrl -s {0, 1, 2, 3, 4, 5} +#super + q +# xdo kill diff --git a/config/sxiv/exec/key-handler b/config/sxiv/exec/key-handler new file mode 100755 index 0000000..37abf07 --- /dev/null +++ b/config/sxiv/exec/key-handler @@ -0,0 +1,10 @@ +#!/bin/sh +while read file +do + case "$1" in + "c") cat "$file" | xclip -sel c -t image/png -i ;; + "f") echo "$file" | xclip -sel c ;; + "w") feh --bg-fill "$file" ;; + "q") echo "$file" > ~/.config/i3/wallpaper; feh --bg-fill "$file" ;; + esac +done diff --git a/dnf.conf b/dnf.conf new file mode 100644 index 0000000..e2ef46c --- /dev/null +++ b/dnf.conf @@ -0,0 +1,13 @@ +# see `man dnf.conf` for defaults and possible options + +[main] +gpgcheck=True +installonly_limit=100 +clean_requirements_on_remove=True +best=False +skip_if_unavailable=True +max_parellel_downloads=100 +fastestmirror=True +deltarpm=true +defaultyes=True +install_weak_deps=false diff --git a/doas.conf b/doas.conf new file mode 100644 index 0000000..fbace3b --- /dev/null +++ b/doas.conf @@ -0,0 +1 @@ +permit persist user diff --git a/scripts/MacOSScript.sh b/scripts/MacOSScript.sh new file mode 100644 index 0000000..3451c88 --- /dev/null +++ b/scripts/MacOSScript.sh @@ -0,0 +1,8 @@ +defaults write com.apple.finder CreateDesktop false +killall Finder + +sudo spctl --master-disable + +sudo scutil --set ComputerName $1 +sudo scutil --set LocalHostName $1 +sudo scutil --set HostName $1 diff --git a/scripts/aur b/scripts/aur new file mode 100755 index 0000000..c0736bd --- /dev/null +++ b/scripts/aur @@ -0,0 +1,12 @@ +#!/bin/sh + +case $1 in + install|in|i) + cd ~/.aur + [[ ! -d ~/.aur/$2 ]] && git clone https://aur.archlinux.org/$2.git + cd ~/.aur/$2 + makepkg -si ;; + + *) curl https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=$1 ;; + +esac diff --git a/scripts/bookmarks b/scripts/bookmarks new file mode 100755 index 0000000..87d2f23 --- /dev/null +++ b/scripts/bookmarks @@ -0,0 +1,8 @@ +#!/bin/bash +[[ ! -f ~/.bookmarks ]] && touch ~/.bookmarks/bookmarks + +dupa=$(awk '{print $1}' ~/.bookmarks/bookmarks | dmenu -l 15 -p "Bookmarks") + +while read p; do + [[ $(echo $p | awk '{print $1}') == $dupa ]] && xdotool type $(echo $p | awk '{print $2}') +done < ~/.bookmarks/bookmarks diff --git a/scripts/bookmarksMacOS.sh b/scripts/bookmarksMacOS.sh new file mode 100755 index 0000000..7d5a87c --- /dev/null +++ b/scripts/bookmarksMacOS.sh @@ -0,0 +1,5 @@ +#!/bin/sh +[[ ! -f ~/.bookmarks ]] && touch ~/.bookmarks + +dupa=$(awk '{print $1}' ~/.bookmarks | dmenu-mac) +cliclick t:$(cat ~/.bookmarks | grep $dupa | awk '{print $2}') diff --git a/scripts/bookmarksWaylandWofi.sh b/scripts/bookmarksWaylandWofi.sh new file mode 100755 index 0000000..0b4299e --- /dev/null +++ b/scripts/bookmarksWaylandWofi.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +[[ ! -f ~/.bookmarks ]] && touch ~/.bookmarks + +dupa=$(awk '{print $1}' ~/.bookmarks | wofi --lines 15 --show dmenu) +x=$(cat ~/.bookmarks | grep $dupa | awk '{print $2}') +echo "type $x" | dotool diff --git a/scripts/dupa b/scripts/dupa new file mode 100755 index 0000000..2cf9338 --- /dev/null +++ b/scripts/dupa @@ -0,0 +1,2 @@ +#!/bin/sh +for i in *.$1; do ffmpeg -i "$i" "$3/${i%.*}.$2"; done diff --git a/scripts/irc b/scripts/irc new file mode 100755 index 0000000..041af8a --- /dev/null +++ b/scripts/irc @@ -0,0 +1 @@ +st -c "weechat" -e "weechat" diff --git a/scripts/lfimg b/scripts/lfimg new file mode 100755 index 0000000..aad9a8d --- /dev/null +++ b/scripts/lfimg @@ -0,0 +1,29 @@ +#!/bin/sh +set -euf + +if [ -n "${DISPLAY-}" ] && [ -z "${FIFO_UEBERZUG-}" ]; then + export FIFO_UEBERZUG="${TMPDIR:-/tmp}/lf-ueberzug-$$" + + cleanup() { + exec 3>&- + rm -- "$FIFO_UEBERZUG" + } + + mkfifo -- "$FIFO_UEBERZUG" + # Execute ueberzug in a loop in case it crashes. Ueberzug dies if its + # associated window is closed. This breaks image previews when using tmux and + # reattaching to an existing session. + while ! ueberzug layer -s <"$FIFO_UEBERZUG"; do :; done & + # Open the FIFO for writing. FIFO readers receive an EOF once all writers + # have closed their respective file descriptors. Holding a file descriptor + # will effectively keep ueberzug alive as long as lf lives. + exec 3>"$FIFO_UEBERZUG" + trap cleanup EXIT + + # Start lf without passing in the file descriptor. This is done to avoid the + # lf server being passed the file descriptor, which would cause ueberzug to + # live longer than is strictly necessary. + lf "$@" 3>&- +else + exec lf "$@" +fi diff --git a/scripts/mouseControll.sh b/scripts/mouseControll.sh new file mode 100755 index 0000000..e71f053 --- /dev/null +++ b/scripts/mouseControll.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +eval $(xdotool getmouselocation --shell) + + +case $1 in + # mouse moving + "left" | "l") xdotool mousemove $(($X-25)) $Y ;; + "right" | "r") xdotool mousemove $(($X+25)) $Y ;; + "up" | "u") xdotool mousemove $X $(($Y-25)) ;; + "down" | "d") xdotool mousemove $X $(($Y+25)) ;; + + + # mouse buttons pressing + 1) xdotool click 1 ;; + 2) xdotool click 3 ;; +esac diff --git a/scripts/nvimPluginsManagerInstaller.sh b/scripts/nvimPluginsManagerInstaller.sh new file mode 100755 index 0000000..a5d53a4 --- /dev/null +++ b/scripts/nvimPluginsManagerInstaller.sh @@ -0,0 +1,10 @@ +echo "installing vim plug..." +sleep 1 +sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' +echo "----------------------" +echo "installing packer..." +git clone --depth 1 https://github.com/wbthomason/packer.nvim\ + ~/.local/share/nvim/site/pack/packer/start/packer.nvim + +echo "all done!" diff --git a/scripts/record b/scripts/record new file mode 100755 index 0000000..cb2d967 --- /dev/null +++ b/scripts/record @@ -0,0 +1,3 @@ +#!/bin/sh +[[ ! -d ~/videos/records ]] && mkdir ~/videos/records +ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f pulse -i 2 ~/videos/records/$(date +"%H-%M-%S__%d-%m-%y").mp4 diff --git a/scripts/screenshoot.sh b/scripts/screenshoot.sh new file mode 100755 index 0000000..5dc72b8 --- /dev/null +++ b/scripts/screenshoot.sh @@ -0,0 +1,8 @@ +[[ ! -d ~/images/screenshots ]] && mkdir ~/images/screenshots +echo "you want to take screenshot of?" +c=$(printf "screen\nselected area" | dmenu) +dir="/home/$USER/images/screenshots" +id=$(openssl rand -hex 7) + +[[ $c == "screen" ]] && shotgun -s $dir/$id.png || shotgun -g $(hacksaw) $dir/$id.png +xclip -selection clipboard -t image/png -i $dir/$id.png diff --git a/scripts/sxkhdReloading b/scripts/sxkhdReloading new file mode 100644 index 0000000..7a651b2 --- /dev/null +++ b/scripts/sxkhdReloading @@ -0,0 +1 @@ +pkill sxhkd; sxhkd & diff --git a/scripts/timer b/scripts/timer new file mode 100755 index 0000000..7ee0b63 --- /dev/null +++ b/scripts/timer @@ -0,0 +1,18 @@ +#!/bin/sh + +s=0 +m=0 +h=0 + +while : ; do + sleep 1s + if [[ $s == 60 ]]; then + m=$((m+1)); s=0 + elif [[ $m == 60 ]]; then + h=$((h+1)); m=0 + fi + + s=$((s+1)) + clear + echo "$h:$m:$s" +done diff --git a/scripts/user.sh b/scripts/user.sh new file mode 100755 index 0000000..76f01fe --- /dev/null +++ b/scripts/user.sh @@ -0,0 +1,6 @@ +echo "profile pic:" +tiv -w 64 -h 64 ~/.avatar.jpg +echo "----------------------------------------------------------------" +echo "username: $USER" + +[[ $1 = "r" ]] && read -p "" diff --git a/scripts/uwufetch b/scripts/uwufetch new file mode 100755 index 0000000..a21341e --- /dev/null +++ b/scripts/uwufetch @@ -0,0 +1,17 @@ +#!/bin/sh + +distro=$(. /etc/os-release; echo $NAME) +kernel=$(uname -r) +uptime=$(uptime -p | sed 's/up//') +pkgsPacman=$(pacman -Qs | wc -l) +pkgsAur=$(yay -Qm | wc -l) + +cat < __ < ) kernel: $kernel +( ) uptime: $uptime +( ) pkgs: Pacman $pkgsPacman | Aur $pkgsAur +(__________) + +END diff --git a/settings.ini b/settings.ini new file mode 100644 index 0000000..33847e1 --- /dev/null +++ b/settings.ini @@ -0,0 +1,28 @@ +# nsnake settings put this file to ~/.local/share/nsnake +[screen] +center_horizontal=1 +center_vertical=1 +borders=1 +fancy_borders=0 +outer_border=0 + +[game] +random_walls=0 +fruits_at_once=1 +teleport=0 +board_scroll_delay=1000 +board_scroll_up=0 +board_scroll_down=0 +board_scroll_left=0 +board_scroll_right=0 +starting_speed=9 +board_size=2 + +[input] +left=h +right=l +up=k +down=j +pause=w +help=[ +quit=q diff --git a/shit.reg b/shit.reg new file mode 100644 index 0000000..571d8de --- /dev/null +++ b/shit.reg @@ -0,0 +1,13 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC] +"EnableMtcUvc"=dword:00000000 + +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM] +"AccentColorInactive"=dword:00000000 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone] +"Value"="Allow" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows] +"PreventUsingAdvancedIndexingOptions"=dword:11111111 \ No newline at end of file diff --git a/shortcuts.ahk b/shortcuts.ahk new file mode 100644 index 0000000..ffe6dac --- /dev/null +++ b/shortcuts.ahk @@ -0,0 +1,24 @@ +^!t::Run "\Users\user\Documents\cmder\Cmder.exe" +#o:: Run "explorer.exe" +#b:: Run "path to executable file" + +#p:: SendInput {PrintScreen} + + +#j:: Send {Volume_Up} +#k:: Send {Volume_Down} + +#m:: Send {Volume_Mute} + + +#q:: +SendInput {Alt down} +SendInput {F4} +SendInput {Alt up} +Return + +#h:: +SendInput {Alt down} +SendInput {Space} +SendInput {n} +Return \ No newline at end of file diff --git a/touchpad.conf b/touchpad.conf new file mode 100644 index 0000000..ff8e750 --- /dev/null +++ b/touchpad.conf @@ -0,0 +1,8 @@ +# put it to the /etc/X11/xorg.conf.d/ +Section "InputClass" + Identifier "touchpad" + MatchIsTouchpad "on" + Driver "libinput" + Option "Tapping" "on" + Option "DisableWhileTyping" "false" +EndSection