cleanup after new installation
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
# Any items in the `env` entry below will be added as
|
||||
# environment variables. Some entries may override variables
|
||||
# set by alacritty itself.
|
||||
#env:
|
||||
env:
|
||||
# TERM variable
|
||||
#
|
||||
# This value is used to set the `$TERM` environment variable for
|
||||
# each instance of Alacritty. If it is not present, alacritty will
|
||||
# check the local terminfo database and use `alacritty` if it is
|
||||
# available, otherwise `xterm-256color` is used.
|
||||
#TERM: xterm-256color
|
||||
TERM: xterm-256color
|
||||
|
||||
window:
|
||||
# Window dimensions (changes require restart)
|
||||
@@ -62,6 +62,9 @@ window:
|
||||
# - SimpleFullscreen
|
||||
startup_mode: Windowed
|
||||
|
||||
# Allow terminal applications to change Alacritty's window title.
|
||||
dynamic_title: true
|
||||
|
||||
# Window title
|
||||
#title: Alacritty
|
||||
|
||||
@@ -86,9 +89,6 @@ scrolling:
|
||||
# Specifying `0` will disable faux scrolling.
|
||||
#faux_multiplier: 3
|
||||
|
||||
# Scroll to the bottom when new text is written to the terminal.
|
||||
auto_scroll: false
|
||||
|
||||
# Spaces per Tab (changes require restart)
|
||||
#
|
||||
# This setting defines the width of a tab in cells.
|
||||
@@ -96,7 +96,7 @@ scrolling:
|
||||
# Some applications, like Emacs, rely on knowing about the width of a tab.
|
||||
# To prevent unexpected behavior in these applications, it's also required to
|
||||
# change the `it` value in terminfo when altering this setting.
|
||||
tabspaces: 4
|
||||
#tabspaces: 4
|
||||
|
||||
# Font configuration (changes require restart)
|
||||
font:
|
||||
@@ -304,7 +304,7 @@ colors: *hyper
|
||||
# - Linear
|
||||
#
|
||||
# Specifying a `duration` of `0` will disable the visual bell.
|
||||
visual_bell:
|
||||
bell:
|
||||
animation: EaseOutExpo
|
||||
duration: 0
|
||||
color: '0xffffff'
|
||||
@@ -373,9 +373,6 @@ selection:
|
||||
# When set to `true`, selected text will be copied to the primary clipboard.
|
||||
save_to_clipboard: false
|
||||
|
||||
# Allow terminal applications to change Alacritty's window title.
|
||||
dynamic_title: true
|
||||
|
||||
cursor:
|
||||
# Cursor style
|
||||
#
|
||||
|
4
.config/fish/bootstrap.fish
Normal file
4
.config/fish/bootstrap.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
# run only once when you setup your computer
|
||||
|
||||
set -U fish_user_paths $fish_user_paths $HOME/.local/bin $HOME/.cargo/bin
|
||||
|
@@ -1,9 +1,11 @@
|
||||
set -x EDITOR vim
|
||||
|
||||
# set makeflags
|
||||
export MAKEFLAGS='-j'(nproc)
|
||||
|
||||
#export TERMINAL=alacritty
|
||||
|
||||
export PAGER="most"
|
||||
thefuck --alias | source
|
||||
zoxide init fish | source
|
||||
|
||||
# start ssh_agent
|
||||
fish_ssh_agent
|
||||
|
||||
|
32
.config/fish/fish_variables
Normal file
32
.config/fish/fish_variables
Normal file
@@ -0,0 +1,32 @@
|
||||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3100
|
||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||
SETUVAR fish_color_cancel:\x2dr
|
||||
SETUVAR fish_color_command:005fd7
|
||||
SETUVAR fish_color_comment:990000
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:009900
|
||||
SETUVAR fish_color_error:ff0000
|
||||
SETUVAR fish_color_escape:00a6b2
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:yellow
|
||||
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||
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:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:brgreen
|
||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||
SETUVAR fish_greeting:Welcome\x20to\x20fish\x2c\x20the\x20friendly\x20interactive\x20shell\x0aType\x20\x60help\x60\x20for\x20instructions\x20on\x20how\x20to\x20use\x20fish
|
||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||
SETUVAR fish_pager_color_completion:\x1d
|
||||
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
|
@@ -1,4 +0,0 @@
|
||||
# Defined in - @ line 1
|
||||
function bat --description 'alias bat=cat /sys/class/power_supply/BAT0/capacity'
|
||||
cat /sys/class/power_supply/BAT0/capacity $argv;
|
||||
end
|
4
.config/fish/functions/batt.fish
Normal file
4
.config/fish/functions/batt.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
# Defined in - @ line 1
|
||||
function batt --description 'alias batt=cat /sys/class/power_supply/BAT0/capacity'
|
||||
cat /sys/class/power_supply/BAT0/capacity $argv;
|
||||
end
|
6
.config/fish/functions/del-known_hosts.fish
Normal file
6
.config/fish/functions/del-known_hosts.fish
Normal file
@@ -0,0 +1,6 @@
|
||||
# Defined in - @ line 1
|
||||
function del-known_hosts --description "removes a single hostname/ip from the known_hosts file"
|
||||
set ip (string escape --style=regex $argv[1])
|
||||
sed "/^$ip.*\$/d" ~/.ssh/known_hosts >~/.ssh/known_hosts.new
|
||||
mv ~/.ssh/known_hosts{.new,}
|
||||
end
|
@@ -37,15 +37,18 @@ set __fish_git_prompt_char_upstream_equal ' 💯 '
|
||||
function fish_prompt
|
||||
set last_status $status
|
||||
|
||||
echo -n "$USER@"
|
||||
set_color $fish_color_user
|
||||
echo -n "$USER"
|
||||
set_color $fish_color_normal
|
||||
echo -n "@"
|
||||
set_color $fish_color_host
|
||||
printf '%s ' (hostname)
|
||||
|
||||
set_color $fish_color_cwd
|
||||
printf '%s' (prompt_pwd)
|
||||
set_color normal
|
||||
|
||||
printf '%s ' (__fish_git_prompt)
|
||||
echo -n "> "
|
||||
printf '%s> ' (__fish_git_prompt)
|
||||
|
||||
set_color normal
|
||||
end
|
||||
|
4
.config/fish/functions/kali-qemu.fish
Normal file
4
.config/fish/functions/kali-qemu.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function kali-qemu
|
||||
qemu-system-x86_64 -m 4096 -smp 4 -cdrom ~/Downloads/isos/kali-linux-2020-1-live-amd64-iso/kali-linux-2020.1-live-amd64.iso -sandbox on -enable-kvm $argv;
|
||||
end
|
||||
|
@@ -1,4 +0,0 @@
|
||||
# Defined in - @ line 1
|
||||
function mount-workdrive --description 'alias mount-workdrive=sudo cryptsetup open /dev/sda2 --type tcrypt --veracrypt work_data && sudo mount /dev/mapper/work_data /mnt'
|
||||
sudo cryptsetup open /dev/sda2 --type tcrypt --veracrypt work_data && sudo mount /dev/mapper/work_data /mnt $argv;
|
||||
end
|
@@ -1,4 +0,0 @@
|
||||
# Defined in - @ line 1
|
||||
function reboot --description 'alias reboot=sudo systemctl reboot'
|
||||
sudo systemctl reboot $argv;
|
||||
end
|
4
.config/fish/functions/service.fish
Normal file
4
.config/fish/functions/service.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
# Defined in - @ line 1
|
||||
function service --wraps=rc-service --description 'alias service=rc-service'
|
||||
rc-service $argv;
|
||||
end
|
@@ -1,4 +0,0 @@
|
||||
# Defined in - @ line 1
|
||||
function umount-workdrive --description 'alias umount-workdrive=sudo umount /mnt && sleep 3 && sudo cryptsetup close /dev/mapper/work_data'
|
||||
sudo umount /mnt && sleep 3 && sudo cryptsetup close /dev/mapper/work_data $argv;
|
||||
end
|
@@ -1,4 +0,0 @@
|
||||
# Defined in - @ line 1
|
||||
function update --description 'alias update=yay -Syyu -- noconfirm'
|
||||
yay -Syyu --noconfirm $argv;
|
||||
end
|
@@ -1,4 +0,0 @@
|
||||
# Defined in - @ line 1
|
||||
function vpn-local --description 'alias vpn-local=sshuttle -r crapstone.me -x crapstone.me 192.168.0.0/24'
|
||||
sshuttle -r crapstone.me -x crapstone.me 192.168.0.0/24 $argv;
|
||||
end
|
15
.config/fish/functions/ytdl-pl.fish
Normal file
15
.config/fish/functions/ytdl-pl.fish
Normal file
@@ -0,0 +1,15 @@
|
||||
function ytdl-pl --description 'downloads a YT playlist with metadata'
|
||||
|
||||
youtube-dl --write-info-json --yes-playlist -o "%(title)s.%(ext)s" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' --prefer-ffmpeg $argv
|
||||
|
||||
for file in *.info.json
|
||||
mv $file $file.old
|
||||
end
|
||||
|
||||
for file in *old
|
||||
cat $file | jq '{id: .id, uploader: .uploader, url: .webpage_url, description: .description, view_count: .view_count, like_count: .like_count, dislike_count: .dislike_count, average_rating: .average_rating}' >(basename $file .old)
|
||||
end
|
||||
|
||||
rm *.old
|
||||
|
||||
end
|
@@ -1,4 +0,0 @@
|
||||
# run only once when you setup your computer
|
||||
|
||||
set -U fish_user_paths $fish_user_paths $HOME/.local/bin
|
||||
|
@@ -3,6 +3,7 @@
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod4
|
||||
set $alt Mod1
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
@@ -59,6 +60,8 @@ bindsym $mod+Shift+$left move left
|
||||
# Move focused workspace to monitor
|
||||
bindsym $mod+Shift+control+$left move workspace to output left
|
||||
bindsym $mod+Shift+control+$right move workspace to output right
|
||||
bindsym $mod+Shift+control+$up move workspace to output up
|
||||
bindsym $mod+Shift+control+$down move workspace to output down
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+h split h
|
||||
@@ -177,9 +180,11 @@ bindsym $mod+control+$left workspace prev
|
||||
|
||||
# workspace assignments (get infos with `xprop`)
|
||||
#assign [class="Vivaldi*"] $ws2
|
||||
assign [class="Deezer"] $ws7
|
||||
assign [class="Thunderbird"] $ws8
|
||||
assign [class="discord"] $ws9
|
||||
assign [class="TelegramDesktop"] $ws10
|
||||
assign [class="whats-app*"] $ws10
|
||||
assign [class="discord"] $ws9
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
@@ -242,6 +247,7 @@ exec_always --no-startup-id "~/.config/polybar/launch.sh"
|
||||
# set workspace layouts
|
||||
exec --no-startup-id "i3-msg 'workspace 1 ; append_layout $HOME/.config/i3/layouts/ws1.json'"
|
||||
exec --no-startup-id "i3-msg 'workspace 2 ; append_layout $HOME/.config/i3/layouts/ws2.json'"
|
||||
exec --no-startup-id "i3-msg 'workspace 8; append_layout $HOME/.config/i3/layouts/ws8.json'"
|
||||
exec --no-startup-id "i3-msg 'workspace 9; append_layout $HOME/.config/i3/layouts/ws9.json'"
|
||||
exec --no-startup-id "i3-msg 'workspace 10; append_layout $HOME/.config/i3/layouts/ws10.json'"
|
||||
|
||||
@@ -261,17 +267,22 @@ bindsym XF86MonBrightnessUp exec "light -A 5"
|
||||
bindsym XF86MonBrightnessDown exec "light -U 5"
|
||||
|
||||
# Keyboard brightness controls
|
||||
bindsym XF86KbdBrightnessUp exec "kbd_backlight up"
|
||||
bindsym XF86KbdBrightnessDown exec "kbd_backlight down"
|
||||
#bindsym XF86KbdBrightnessUp exec "kbd_backlight up"
|
||||
#bindsym XF86KbdBrightnessDown exec "kbd_backlight down"
|
||||
|
||||
# Screenshot
|
||||
bindsym $mod+Shift+s exec "flameshot gui"
|
||||
#bindsym $alt+Print exec "gnome-screenshot --cipboard --window"
|
||||
#bindsym Print exec "gnome-screenshot --cipboard"
|
||||
|
||||
# enable transparancy
|
||||
exec --no-startup-id "compton -f"
|
||||
exec --no-startup-id "picom -f -i 1.0 --vsync --backend xr_glx_hybrid --inactive-dim 0.2 --inactive-opacity 0.9"
|
||||
|
||||
# desktop_background
|
||||
#exec_always "feh --bg-scale ~/Pictures/wallpaper.png"
|
||||
exec --no-startup-id "wal -R"
|
||||
|
||||
exec_always --no-startup-id "/bin/sh ~/.config/i3/i3rc"
|
||||
#exec_always --no-startup-id "/bin/sh ~/.config/i3/i3rc"
|
||||
|
||||
# autostart applications
|
||||
exec --no-startup-id "dex -a
|
||||
|
20
.config/i3/layouts/ws8.json
Normal file
20
.config/i3/layouts/ws8.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"border": "none",
|
||||
"current_border_width": 0,
|
||||
"floating": "auto_off",
|
||||
"geometry": {
|
||||
"height": 1053,
|
||||
"width": 1920,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"name": "Mozilla Thunderbird",
|
||||
"percent": 1,
|
||||
"swallows": [
|
||||
{
|
||||
"instance": "^Mail$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
|
@@ -1,2 +0,0 @@
|
||||
i3-msg "workspace 9; append_layout $HOME/.config/i3/layouts/ws9.json"
|
||||
i3-msg "workspace 10; append_layout $HOME/.config/i3/layouts/ws10.json"
|
@@ -34,7 +34,7 @@ alert = $(xrdb:color3:#bd2c40)
|
||||
[bar/bar0]
|
||||
;monitor = ${env:MONITOR:HDMI-1}
|
||||
width = 100%
|
||||
height = 27
|
||||
height = 2.5%
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
;radius = 6.0
|
||||
@@ -63,22 +63,22 @@ font-4 = FontAwesome:size=10;0
|
||||
|
||||
modules-left = i3
|
||||
;modules-center = date
|
||||
modules-right = backlight-acpi alsa xkeyboard memory memory-abs cpu cpu-load wlan battery temperature date powermenu
|
||||
modules-right = backlight-acpi alsa xkeyboard memory memory-abs cpu cpu-freq cpu-load temperature wlan battery date powermenu
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
;tray-background = #0063ff
|
||||
|
||||
;wm-restack = bspwm
|
||||
;wm-restack = i3
|
||||
wm-restack = i3
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
;scroll-up = bspwm-desknext
|
||||
;scroll-down = bspwm-deskprev
|
||||
|
||||
;scroll-up = i3wm-wsnext
|
||||
;scroll-down = i3wm-wsprev
|
||||
scroll-up = i3wm-wsnext
|
||||
scroll-down = i3wm-wsprev
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
@@ -98,8 +98,6 @@ format-prefix-underline = ${colors.secondary}
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.secondary}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
@@ -203,12 +201,21 @@ interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage:2%% %percentage-sum%
|
||||
label = %percentage:02%% %percentage-sum:03%
|
||||
|
||||
[module/cpu-load]
|
||||
type=custom/script
|
||||
interval=30
|
||||
exec="cat /proc/loadavg | cut -d ' ' -f 1"
|
||||
format = <label>
|
||||
label = %output%
|
||||
|
||||
[module/cpu-freq]
|
||||
type=custom/script
|
||||
interval=2
|
||||
exec="cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq | sed 's/.\{3\}$//' | sort -n | tail -n 1"
|
||||
format = <label>
|
||||
label = %output:04%
|
||||
|
||||
|
||||
[module/memory]
|
||||
@@ -261,8 +268,8 @@ format-disconnected =
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
date = " %Y/%m/%d"
|
||||
date-alt = " %Y-%m-%d"
|
||||
date = " 12.0%y/%m/%d"
|
||||
date-alt = " 12.0%y-%m-%d"
|
||||
|
||||
time = %H:%M:%S
|
||||
time-alt = %H:%M
|
||||
@@ -364,9 +371,9 @@ animation-discharging-framerate = 750
|
||||
[module/temperature]
|
||||
interval = 2
|
||||
type = internal/temperature
|
||||
#thermal-zone = 10
|
||||
thermal-zone = 10
|
||||
warn-temperature = 80
|
||||
hwmon-path = /sys/devices/virtual/hwmon/hwmon4/temp1_input
|
||||
#hwmon-path = /sys/devices/virtual/hwmon/hwmon4/temp1_input
|
||||
|
||||
format = <ramp> <label>
|
||||
format-underline = #f50a4d
|
||||
@@ -411,6 +418,12 @@ menu-2-0-exec = poweroff
|
||||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[module/ice-status]
|
||||
type=custom/script
|
||||
interval=10
|
||||
exec="/usr/bin/python /home/andi/Documents/coding/python/ice-status/ice-status.py -s"
|
||||
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
|
Reference in New Issue
Block a user