.
This commit is contained in:
parent
9f7701ce6d
commit
f939a3d5bd
7 changed files with 150 additions and 0 deletions
39
config/i3status-rust/desktop-config.toml
Normal file
39
config/i3status-rust/desktop-config.toml
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
[[block]]
|
||||||
|
block = "net"
|
||||||
|
format = " $icon {$signal_strength $ssid|Wired connection}"
|
||||||
|
interval = 10
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "disk_space"
|
||||||
|
interval = 300
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "memory"
|
||||||
|
format = " $icon $mem_used_percents"
|
||||||
|
interval = 30
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "cpu"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "sound"
|
||||||
|
max_vol = 150
|
||||||
|
show_volume_when_muted = true
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "sound"
|
||||||
|
device_kind = "source"
|
||||||
|
max_vol = 150
|
||||||
|
show_volume_when_muted = true
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "time"
|
||||||
|
format = " $timestamp.datetime(f:' %d/%m %R') "
|
||||||
|
interval = 60
|
||||||
|
|
||||||
|
[icons]
|
||||||
|
icons = "material-nf"
|
||||||
|
|
||||||
|
[theme]
|
||||||
|
theme = "ctp-mocha"
|
||||||
|
|
||||||
42
config/i3status-rust/laptop-config.toml
Normal file
42
config/i3status-rust/laptop-config.toml
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
[[block]]
|
||||||
|
block = "battery"
|
||||||
|
interval = 30
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "net"
|
||||||
|
format = " $icon {$signal_strength $ssid|Wired connection}"
|
||||||
|
interval = 10
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "disk_space"
|
||||||
|
interval = 300
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "memory"
|
||||||
|
format = " $icon $mem_used_percents"
|
||||||
|
interval = 30
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "cpu"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "sound"
|
||||||
|
max_vol = 150
|
||||||
|
show_volume_when_muted = true
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "sound"
|
||||||
|
device_kind = "source"
|
||||||
|
max_vol = 150
|
||||||
|
show_volume_when_muted = true
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "time"
|
||||||
|
format = " $timestamp.datetime(f:' %d/%m %R') "
|
||||||
|
interval = 60
|
||||||
|
|
||||||
|
[icons]
|
||||||
|
icons = "material-nf"
|
||||||
|
|
||||||
|
[theme]
|
||||||
|
theme = "ctp-mocha"
|
||||||
1
config/mako/config
Normal file
1
config/mako/config
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
13
home/.bashrc
Normal file
13
home/.bashrc
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#
|
||||||
|
# ~/.bashrc
|
||||||
|
#
|
||||||
|
|
||||||
|
# If not running interactively, don't do anything
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
PS1='[\u@\h \W]\$ '
|
||||||
|
|
||||||
|
export EDITOR=nvim
|
||||||
|
export PATH=/opt/or1k_toolchain/bin:$PATH
|
||||||
26
scripts/background
Executable file
26
scripts/background
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh
|
||||||
|
BACKGROUND_DIR="$HOME/dotfiles/backgrounds/"
|
||||||
|
case "$(uname -a)" in
|
||||||
|
*Darwin*) UEBERZUG_TMP_DIR="$TMPDIR" ;;
|
||||||
|
*) UEBERZUG_TMP_DIR="/tmp" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
ueberzugpp cmd -s "$SOCKET" -a exit
|
||||||
|
}
|
||||||
|
trap cleanup HUP INT QUIT TERM EXIT
|
||||||
|
|
||||||
|
UB_PID_FILE="$UEBERZUG_TMP_DIR/.$(uuidgen)"
|
||||||
|
ueberzugpp layer --no-stdin --silent --use-escape-codes --pid-file "$UB_PID_FILE"
|
||||||
|
UB_PID=$(cat "$UB_PID_FILE")
|
||||||
|
|
||||||
|
export SOCKET="$UEBERZUG_TMP_DIR"/ueberzugpp-"$UB_PID".socket
|
||||||
|
|
||||||
|
# run fzf with preview
|
||||||
|
WALLPAPER=$(find $BACKGROUND_DIR -type f | fzf --reverse --preview="ueberzugpp cmd -s $SOCKET -i fzfpreview -a add \
|
||||||
|
-x \$FZF_PREVIEW_LEFT -y \$FZF_PREVIEW_TOP \
|
||||||
|
--max-width \$FZF_PREVIEW_COLUMNS --max-height \$FZF_PREVIEW_LINES \
|
||||||
|
-f {}")
|
||||||
|
|
||||||
|
hyprctl hyprpaper reload ,"$WALLPAPER"
|
||||||
|
ueberzugpp cmd -s "$SOCKET" -a exit
|
||||||
25
scripts/fzfub.sh
Executable file
25
scripts/fzfub.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$(uname -a)" in
|
||||||
|
*Darwin*) UEBERZUG_TMP_DIR="$TMPDIR" ;;
|
||||||
|
*) UEBERZUG_TMP_DIR="/tmp" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
ueberzugpp cmd -s "$SOCKET" -a exit
|
||||||
|
}
|
||||||
|
trap cleanup HUP INT QUIT TERM EXIT
|
||||||
|
|
||||||
|
UB_PID_FILE="$UEBERZUG_TMP_DIR/.$(uuidgen)"
|
||||||
|
ueberzugpp layer --no-stdin --silent --use-escape-codes --pid-file "$UB_PID_FILE"
|
||||||
|
UB_PID=$(cat "$UB_PID_FILE")
|
||||||
|
|
||||||
|
export SOCKET="$UEBERZUG_TMP_DIR"/ueberzugpp-"$UB_PID".socket
|
||||||
|
|
||||||
|
# run fzf with preview
|
||||||
|
fzf --reverse --preview="ueberzugpp cmd -s $SOCKET -i fzfpreview -a add \
|
||||||
|
-x \$FZF_PREVIEW_LEFT -y \$FZF_PREVIEW_TOP \
|
||||||
|
--max-width \$FZF_PREVIEW_COLUMNS --max-height \$FZF_PREVIEW_LINES \
|
||||||
|
-f {}"
|
||||||
|
|
||||||
|
ueberzugpp cmd -s "$SOCKET" -a exit
|
||||||
4
scripts/meteo
Executable file
4
scripts/meteo
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
locations="Vicques\nLausanne\nBern"
|
||||||
|
selected=$(echo -e $locations | fzf)
|
||||||
|
curl wttr.in/$selected
|
||||||
Loading…
Add table
Add a link
Reference in a new issue