Alex 2022-07-26 22:12:47 -05:00
commit 33ea1906ba
16 changed files with 188 additions and 564 deletions

View File

@ -185,40 +185,40 @@ font:
# If `true`, bold text is drawn using the bright color variants. # If `true`, bold text is drawn using the bright color variants.
#draw_bold_text_with_bright_colors: true #draw_bold_text_with_bright_colors: true
# Base16 Nord - alacritty color config # Base16 Gruvbox dark, medium - alacritty color config
# arcticicestudio # Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
colors: colors:
# Default colors # Default colors
primary: primary:
background: '0x2e3440' background: '0x282828'
foreground: '0xe5e9f0' foreground: '0xd5c4a1'
# Colors the cursor will use if `custom_cursor_colors` is true # Colors the cursor will use if `custom_cursor_colors` is true
cursor: cursor:
text: '0x2e3440' text: '0x282828'
cursor: '0xe5e9f0' cursor: '0xd5c4a1'
# Normal colors # Normal colors
normal: normal:
black: '0x2e3440' black: '0x282828'
red: '0xbf616a' red: '0xfb4934'
green: '0xa3be8c' green: '0xb8bb26'
yellow: '0xebcb8b' yellow: '0xfabd2f'
blue: '0x81a1c1' blue: '0x83a598'
magenta: '0xb48ead' magenta: '0xd3869b'
cyan: '0x88c0d0' cyan: '0x8ec07c'
white: '0xe5e9f0' white: '0xd5c4a1'
# Bright colors # Bright colors
bright: bright:
black: '0x4c566a' black: '0x665c54'
red: '0xd08770' red: '0xfe8019'
green: '0x3b4252' green: '0x3c3836'
yellow: '0x434c5e' yellow: '0x504945'
blue: '0xd8dee9' blue: '0xbdae93'
magenta: '0xeceff4' magenta: '0xebdbb2'
cyan: '0x5e81ac' cyan: '0xd65d0e'
white: '0x8fbcbb' white: '0xfbf1c7'
draw_bold_text_with_bright_colors: false draw_bold_text_with_bright_colors: false

View File

@ -1,37 +1,22 @@
#!/bin/sh #!/bin/sh
#if [ "$(echo "$TERM" | grep "kitty" )" ]; then
# IMG_CMD="kitty +kitten icat"
#IMG_CMD="jp2a"
# case "$1" in
# *.tar*) tar tf "$1";;
# *.zip) unzip -l "$1";;
# *.rar) unrar l "$1";;
# *.7z) 7z l "$1";;
# *.jpg | *.JPG | *.jpeg) $IMG_CMD "$1";;
# *.png | *.svg | *.gif) $IMG_CMD "$1";;
# *.mp4 | *.mkv | *.webm | *.avi | *.mpg | *.mpeg | *.ogv | *.flv | *.wmv | *.WMV) ffmpegthumbnailer -i "$1" -c jpeg -o - | $IMG_CMD -;;
# #*.jpg | *.JPG | *.jpeg) jp2a "$1" -b --width=$(($(tput cols)/2 - 10));;
# #*.png | *.svg | *.gif) convert "$1" jpg:- | jp2a - -b --width=$(($(tput cols)/2 - 10));;
# #*.mp4 | *.mkv | *.webm | *.avi | *.mpg | *.mpeg | *.ogv | *.flv | *.wmv | *.WMV) ffmpegthumbnailer -i "$1" -c jpeg -o - | jp2a - -b --width=$(($(tput cols)/2 - 10));;
# *.pdf) pdftotext "$1" -;;
# *) highlight -O ansi "$1" || cat "$1";;
# esac
#else W="$(($(tput cols)/2 - 10))"
case "$1" in #H="$(tput lines)"
fn="$1"
w="$2"
h="$3"
x="$4"
y="$5"
case "$fn" in
*.tar*) tar tf "$1";; *.tar*) tar tf "$1";;
*.zip) unzip -l "$1";; *.zip) unzip -l "$1";;
*.rar) unrar l "$1";; *.rar) unrar l "$1";;
*.7z) 7z l "$1";; *.7z) 7z l "$1";;
*.jpg | *.JPG | *.jpeg) viu -t "$1" -w $(($(tput cols)/2 - 10));; *.jpg | *.JPG | *.jpeg) chafa "$fn" --size="$w"x"$h" ;;#viu -t "$1" -w "$2" ;;
*.png | *.svg | *.gif) viu -t "$1" -w $(($(tput cols)/2 - 10)) ;; *.png | *.svg | *.gif) chafa "$fn" --size="$w"x"$h" ;;
*.mp4 | *.mkv | *.webm | *.avi | *.mpg | *.mpeg | *.ogv | *.flv | *.wmv | *.WMV) ffmpegthumbnailer -i "$1" -c jpeg -o - | viu -t -;; *.mp4 | *.mkv | *.webm | *.avi | *.mpg | *.mpeg | *.ogv | *.flv | *.wmv | *.WMV) ffmpegthumbnailer -i "$fn" -c jpeg -o - | chafa - --size="$w"x"$h";;
#*.jpg | *.JPG | *.jpeg) jp2a "$1" -b --width=$(($(tput cols)/2 - 10));;
#*.png | *.svg | *.gif) convert "$1" jpg:- | jp2a - -b --width=$(($(tput cols)/2 - 10));;
#*.mp4 | *.mkv | *.webm | *.avi | *.mpg | *.mpeg | *.ogv | *.flv | *.wmv | *.WMV) ffmpegthumbnailer -i "$1" -c jpeg -o - | jp2a - -b --width=$(($(tput cols)/2 - 10));;
*.pdf) pdftotext "$1" -;; *.pdf) pdftotext "$1" -;;
*) bat -f "$1";; #*) highlight -O ansi "$1" || cat "$1";; *) bat -f "$1";; #*) highlight -O ansi "$1" || cat "$1";;
esac esac
#fi

View File

@ -15,7 +15,7 @@ mod="Mod1"
riverctl map normal $mod+Shift Return spawn alacritty riverctl map normal $mod+Shift Return spawn alacritty
# Mod+P open bemenu # Mod+P open bemenu
riverctl map normal $mod P spawn "bemenu-run -H 24" riverctl map normal $mod P spawn "rofi -show run"
# Mod+Q to close the focused view # Mod+Q to close the focused view
riverctl map normal $mod+Shift C close riverctl map normal $mod+Shift C close

View File

@ -146,4 +146,4 @@ configuration {
} }
} }
@theme "base16-nord" @theme "base16-gruvbox-dark-medium"

View File

@ -229,10 +229,10 @@ bindsym ctrl+alt+delete exec waylogout
#include ~/.config/sway/colors/base16-atlas #include ~/.config/sway/colors/base16-atlas
#include ~/.local/src/base16-sway/themes/base16-gruvbox-dark-medium.config include ~/.local/src/base16-sway/themes/base16-gruvbox-dark-medium.config
#include ~/.local/src/base16-sway/themes/base16-atlas.config #include ~/.local/src/base16-sway/themes/base16-atlas.config
#include ~/.local/src/base16-sway/themes/base16-gruvbox-dark-hard.config #include ~/.local/src/base16-sway/themes/base16-gruvbox-dark-hard.config
include ~/.local/src/base16-sway/themes/base16-nord.config #include ~/.local/src/base16-sway/themes/base16-nord.config
# #

View File

@ -1,144 +1,57 @@
//stole this from: https://git.sr.ht/~oscarcp/ghostfiles/tree/master/item/waybar/config
{ {
// "layer": "top", // Waybar at top layer "layer": "top",
// "position": "bottom", // Waybar position (top|bottom|left|right) "position": "top",
"height": 24, // Waybar height (to be removed for auto height) //"modules-left": ["custom/media"],
// "width": 1280, // Waybar width "modules-left": ["wlr/workspaces", "sway/mode", "custom/media"],
// Choose the order of the modules "modules-right": ["custom/keyboard", "network", "battery", "pulseaudio", "clock", "custom/quit"],
"modules-left": ["river/tags", "sway/mode", "custom/media"],
"modules-center": ["sway/window"],
"modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"],
// Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
"custom/dwlbar": { "wlr/workspaces": {
"format": "{}",
"return-type": "json",
"max-length": 200,
"exec": "$HOME/.config/waybar/dwlbar 'HDMI-A-1'",
"escape": true
}
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"idle_inhibitor": {
"format": "{icon}", "format": "{icon}",
"on-click": "activate",
"format-icons": { "format-icons": {
"activated": "", "1": "1",
"deactivated": "" "2": "2",
"3": "3",
"4": "4",
"5": "5",
"urgent": "",
"active": "",
"default": ""
} }
}, },
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": { "clock": {
// "timezone": "America/New_York", "format": "{:%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "format-alt": "{:%a %b %d}",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false "tooltip": false
}, },
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
},
"battery": { "battery": {
"states": { "states": {
// "good": 95, "good": 95,
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "{capacity}% {icon}", "bat":"BAT1",
"format-charging": "{capacity}%", "format": "{icon} {capacity}%",
"format-plugged": "{capacity}% ", "format-charging": " {capacity}%",
"format-alt": "{time} {icon}", "format-plugged": " {capacity}%",
// "format-good": "", // An empty format will hide the module "format-discharging": " {capacity}%",
// "format-full": "", "format-alt": "{icon} {time}",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"battery#bat2": {
"bat": "BAT2"
},
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface "format": "{ifname}",
"format-wifi": "{essid} ({signalStrength}%) ", "format-wifi": " {essid}",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ", "format-ethernet": " {ifname}",
"format-linked": "{ifname} (No IP) ", "format-disconnected": "",
"format-disconnected": "Disconnected ⚠", "tooltip-format-wifi": "{signalStrength}%",
"format-alt": "{ifname}: {ipaddr}/{cidr}" "max-length": 20
}, },
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float "format": "{icon} {volume}%",
"format": "{volume}% {icon} {format_source}", "format-bluetooth": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon} {format_source}", "format-muted": "",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": { "format-icons": {
"headphone": "", "headphone": "",
"hands-free": "", "hands-free": "",
@ -146,21 +59,13 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": ["", ""]
}, },
"scroll-step": 1,
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
"custom/media": { "custom/quit": {
"format": "{icon} {}", "format": "",
"return-type": "json", "on-click": "waylogout"
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
} }
} }

View File

@ -1,255 +1,73 @@
/*stole this from
* https://git.sr.ht/~oscarcp/ghostfiles/tree/master/item/waybar/style.css
*/
* { * {
border: none; font-size: 12px;
border-radius: 0; font-family: "mono";
/* `otf-font-awesome` is required to be installed for icons */
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
min-height: 0;
} }
window#waybar { window#waybar {
background-color: rgba(43, 48, 59, 0.5); background: rgba(0,0,0,0);
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.focused {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#mode {
background-color: #64727D;
border-bottom: 3px solid #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#mpd {
padding: 0 10px;
margin: 0 4px;
color: #ffffff;
}
#window,
#workspaces {
margin: 0 4px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
#clock {
background-color: #64727D;
} }
#battery { #battery {
background-color: #ffffff; margin: 3px 0px 3px 0px;
color: #000000; background: #1d1f21;
padding: 5px;
color: #c5c8c6;
} }
#battery.charging, #battery.plugged { #custom-quit {
color: #ffffff; margin: 3px 3px 3px 0px;
background-color: #26A65B; padding: 5px 7px 5px 5px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border-right: 2px solid #1d1f21;
border-top: 2px solid #1d1f21;
border-bottom: 2px solid #1d1f21;
background: #F00;
color: #FFF;
} }
@keyframes blink { #clock {
to { margin: 3px 0px 3px 3px;
background-color: #ffffff; padding: 5px;
color: #000000; color: #FFF;
} background: #1d1f21;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
color: #c5c8c6;
} }
#battery.critical:not(.charging) { #custom-keyboard {
background-color: #f53c3c; background: #1d1f21;
color: #ffffff; color: #c5c8c6;
animation-name: blink; padding: 5px 5px 5px 7px;
animation-duration: 0.5s; margin: 3px 0px 3px 3px;
animation-timing-function: linear; border-top-left-radius: 10px;
animation-iteration-count: infinite; border-bottom-left-radius: 10px;
animation-direction: alternate;
}
label:focus {
background-color: #000000;
}
#cpu {
background-color: #2ecc71;
color: #000000;
}
#memory {
background-color: #9b59b6;
}
#disk {
background-color: #964B00;
}
#backlight {
background-color: #90b1b1;
}
#network {
background-color: #2980b9;
}
#network.disconnected {
background-color: #f53c3c;
}
#pulseaudio {
background-color: #f1c40f;
color: #000000;
}
#pulseaudio.muted {
background-color: #90b1b1;
color: #2a5c45;
} }
#custom-media { #custom-media {
background-color: #66cc99; margin: 3px;
color: #2a5c45; padding: 5px 7px 5px 7px;
min-width: 100px; border-radius: 10px;
background: #1d1f21;
color: #c5c8c6;
}
#pulseaudio {
margin: 3px 3px 3px 0px;
padding: 5px 7px 5px 5px;
background: #1d1f21;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
color: #c5c8c6;
} }
#custom-media.custom-spotify { #network {
background-color: #66cc99; background: #1d1f21;
} color: #c5c8c6;
margin: 3px 0px 3px 0px;
#custom-media.custom-vlc { padding: 5px;
background-color: #ffa000;
}
#temperature {
background-color: #f0932b;
}
#temperature.critical {
background-color: #eb4d4b;
}
#tray {
background-color: #2980b9;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}
#idle_inhibitor {
background-color: #2d3436;
}
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
}
#mpd {
background-color: #66cc99;
color: #2a5c45;
}
#mpd.disconnected {
background-color: #f53c3c;
}
#mpd.stopped {
background-color: #90b1b1;
}
#mpd.paused {
background-color: #51a37a;
}
#language {
background: #00b093;
color: #740864;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state {
background: #97e1ad;
color: #000000;
padding: 0 0px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state > label {
padding: 0 5px;
}
#keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2);
} }

View File

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
unset GDK_BACKEND unset GDK_BACKEND
$HOME/.local/appimages/Jaxx\ Liberty-* $HOME/.local/appimages/Jaxx.Liberty-*
#jaxx-liberty-appimage

View File

@ -1,54 +0,0 @@
#!/bin/sh
#copied from: https://github.com/void-linux/socklog-void/blob/master/svlogtail
usage () {
cat <<-'EOF'
svlogtail [-f] [LOG...] - show svlogd logs conveniently
Without arguments, show current logs of all services, uniquely.
With arguments, show all logs of mentioned services
With -f, follow log output.
EOF
}
globexist() {
[ -f "$1" ]
}
IFS='
'
fflag=false
if [ "$1" = -f ]; then
shift
fflag=true
fi
if [ $# = 0 ]; then
cat /var/log/socklog/*/current | sort -u
if $fflag; then
tail -Fq -n0 /var/log/socklog/*/current | uniq
fi
else
old=
cur=
for log; do
case "$log" in
-*) usage; exit 1;;
esac
if [ -d /var/log/socklog/$log ]; then
if globexist /var/log/socklog/$log/*.[us]; then
old="$old$IFS/var/log/socklog/$log/*.[us]"
fi
cur="$cur$IFS/var/log/socklog/$log/current"
else
echo "no logs for $log" 1>&2
exit 1
fi
done
cat $old $cur | sort
if $fflag; then
tail -Fq -n0 $cur
fi
fi

View File

@ -1,70 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
tremc -c@192.168.1.162:9091 "$@" ARGS="$@"
notify-send "transadd" " $@" RSP="$(tremc -c@192.168.1.162:9091 "$ARGS" )"
notify-send "transadd" "adding: $RSP"
# script copied from Luke Smith to add a torrent
# removed part of first line that uses i3blocks
# modifications to allow the user to select the download directory using lf
#modifications to interface with remote transmission server
#TRANSMISSION_REMOTE="nagato:9091"
#
#OPTS="default
#lf_select
#lf_last"
#
#DEST="remote
#local"
#
#DEST_OPT="local" #"$(echo "$DEST" | bemenu -p "select destination machine: ")"
#
#if [ "$DEST_OPT" = "local" ]; then
# pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3)
#fi
#
#
#OPT="$(echo "$OPTS" | bemenu -p "download to:")"
#
#if [ "$OPT" = "lf_select" ]; then
# if [ ! -f ~/.cache/lf/lastpath ]; then
# mkdir -p ~/.cache/lf/
# touch ~/.cache/lf/lastpath
# echo "~" > ~/.cache/lf/lastpath
# fi
# $TERMINAL -e lf -last-dir-path ~/.cache/lf/lastpath "$(cat ~/.cache/lf/lastpath)"
# SEL="$(cat ~/.cache/lf/lastpath)"
#
#elif [ "$OPT" = "lf_last" ]; then
# SEL="$(cat ~/.cache/lf/lastpath)"
#
#elif [ "$OPT" = "default" ]; then
# SEL=""
#
#else
# SEL=""
# notify-send "ERROR"
# exit
#
#fi
#
#
##if [ "$TRANSMISSION_REMOTE" ]; then
## SEL_REM="$(echo "$SEL" | sed 's/^\/media\/nagato/\/media\/storage/g')"
##fi
#
#
##if [ "$DEST_OPT" = "remote" ]; then
## if [ "$SEL_REM" ]; then
## transmission-remote $TRANSMISSION_REMOTE -a "$@" -w "$SEL_REM" && notify-send " Transmission-daemon" "Torrent added to $SEL"
## else
## transmission-remote $TRANSMISSION_REMOTE -a "$@" && notify-send " Transmission-daemon" "Torrent added."
## fi
##else
# if [ -d "$SEL" ]; then
# transmission-remote -a "$@" -w "$SEL" && notify-send " Transmission-daemon" "Torrent added to $SEL"
# else
# transmission-remote -a "$@" && notify-send " Transmission-daemon" "Torrent added."
# fi
##fi

View File

@ -45,6 +45,8 @@ enable_repos() {
} }
init_setup() { init_setup() {
sudo timedatectl set-ntp true
#system services #system services
sudo systemctl enable connman.service sudo systemctl enable connman.service
sudo systemctl enable ufw.service sudo systemctl enable ufw.service

View File

@ -16,7 +16,6 @@ fuse
python-urwid python-urwid
btrfs-progs btrfs-progs
reiserfsprogs reiserfsprogs
chrony
ufw ufw
wget wget
curl curl
@ -54,7 +53,7 @@ pulsemixer
pamixer pamixer
papirus-icon-theme papirus-icon-theme
python-pdftotext python-pdftotext
viu chafa
bat bat
imv imv
ncmpcpp ncmpcpp

View File

@ -4,11 +4,8 @@
setwp() { setwp() {
#wal -n -s -t -e -i "$1" #wal -n -s -t -e -i "$1"
rm ~/.config/wall rm ~/.config/wall
#rm ~/.fehbg
cp "$1" "$HOME/.config/wall" cp "$1" "$HOME/.config/wall"
#convert "$1" -set colorspace Gray -separate -average ~/.config/wall swaymsg "output * bg ~/.config/wall fill"
#xwallpaper --zoom "$HOME/.config/wall"
#feh --bg-scale $HOME/.config/wall
} }
@ -24,11 +21,11 @@ setwp() {
# #
#elif [ -f "$1" ]; then #elif [ -f "$1" ]; then
# #setwp "$PWD/$1" # #setwp "$PWD/$1"
setwp "$1" # setwp "$1"
#fi #fi
if [ -f "$1" ]; then if [ -f "$1" ]; then
# #setwp "$PWD/$1"
setwp "$1" setwp "$1"
fi fi

30
.local/scripts/start-monero.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/sh
#DATA_LOC="/media/SEAGATE/CRYPTO/monero/BLOCKCHAIN/"
#DATA_LOC="$HOME/.local/share/monero/BLOCKCHAIN/"
DATA_LOC="/media/SEAGATE/CRYPTO/monero/BLOCKCHAIN2/"
WALLET_LOC="$HOME"/.local/wallets/monero/myWallet/myWallet
#add this in /etc/security/limits.conf
# $USER hard memlock 2048
# $USER soft memlock 2048
#ulimit -l 2048
#monerod --data-dir "$DATA_LOC" --mining-threads 3 --detach
#sleep 60
if [ "$1" = "-w" ]; then
monero-wallet-cli --wallet-file "$WALLET_LOC"
elif [ "$1" = "-i" ]; then
mkdir -p "$DATA_LOC"
ulimit -l 2048
monerod --data-dir "$DATA_LOC" --prune-blockchain --max-concurrency=4 --detach
#monerod --data-dir "$DATA_LOC" --db-salvage
echo "sleeping..."
sleep 1200
echo "Wallet started."
else
echo "-i -> initialize, set ulimits and start monerod"
echo "-w -> open wallet in cli"
fi

View File

@ -13,6 +13,9 @@ export PF_INFO="ascii title os kernel uptime pkgs memory shell wm"
export XCURSOR_THEME=Adwaita export XCURSOR_THEME=Adwaita
#fix image previews in lf not working
export TERM="xterm-256color"
#other settings #other settings
#export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. must have qt5-styleplugins installed #export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. must have qt5-styleplugins installed
export QT_QPA_PLATFORMTHEME="qt5ct" #have QT use qt5ct theme export QT_QPA_PLATFORMTHEME="qt5ct" #have QT use qt5ct theme
@ -75,8 +78,10 @@ export AWT_TOOLKIT=MToolkit
#mount samba share, needs entry in /etc/fstab for this line to work #mount samba share, needs entry in /etc/fstab for this line to work
# //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0 # //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0
#mount /media/nagato/ & #mount /media/nagato/ &
mount /media/bismarck &
if [ "$(tty)" = /dev/tty1 ]; then if [ "$(tty)" = /dev/tty1 ]; then
exec dbus-launch sway exec dbus-launch sway
#exec dbus-launch Hyprland
fi fi

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 KiB