Compare commits

...

4 Commits

53 changed files with 220 additions and 435 deletions

View File

@ -16,7 +16,7 @@ import = ["~/.config/alacritty/white.toml"]
[window] [window]
# opacity = 0.9 opacity = 1
padding.x = 10 padding.x = 10
# padding.y = 10 # padding.y = 10
decorations = "Full" decorations = "Full"
@ -43,3 +43,8 @@ mouse.mods = "Control"
post_processing = true post_processing = true
persist = false persist = false
regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩‘]+" regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩‘]+"
[keyboard]
bindings = [
{ key = "T", mods = "Control|Shift", command = { program = "fish", args = ["/yang/scripts/toggle_opacity_alacritty.fish"] } }
]

View File

@ -0,0 +1,31 @@
# Default colors
[colors.primary]
background = '#0a0c10'
foreground = '#f0f3f6'
# Cursor colors
[colors.cursor]
text = '#0a0c10'
cursor = '#f0f3f6'
# Normal colors
[colors.normal]
black = '#7a828e'
red = '#ff9492'
green = '#26cd4d'
yellow = '#f0b72f'
blue = '#71b7ff'
magenta = '#cb9eff'
cyan = '#39c5cf'
white = '#d9dee3'
# Bright colors
[colors.bright]
black = '#9ea7b3'
red = '#ffb1af'
green = '#4ae168'
yellow = '#f7c843'
blue = '#91cbff'
magenta = '#cb9eff'
cyan = '#39c5cf'
white = '#d9dee3'

View File

@ -1,27 +1,31 @@
[colors.normal] [colors.normal]
black = '#EEE8D5' # Black (Host) black = '#212121' # Black (Host)
red = '#DC322F' # Red (Syntax string) red = '#b7141e' # Red (Syntax string)
green = '#859900' # Green (Command) green = '#457b23' # Green (Command)
yellow = '#b58900' # yellow (command second) yellow = '#f5971d' # Yellow (Command second)
blue = '#268bd2' # blue (path) blue = '#134eb2' # Blue (Path)
magenta = '#d33682' # magenta (syntax var) magenta = '#550087' # Magenta (Syntax var)
cyan = '#2aa198' # cyan (prompt) cyan = '#0e707c' # Cyan (Prompt)
white= '#002b36' # white white = '#eeeeee' # White
[colors.bright] [colors.bright]
black= '#657b83' # Bright Black black = '#424242' # Bright Black
red = '#cb4b16' # bright red (command error) red = '#e83a3f' # Bright Red (Command error)
green = '#859900' # bright green (exec) green = '#7aba39' # Bright Green (Exec)
yellow= '#b58900' # bright yellow yellow = '#fee92e' # Bright Yellow
blue = '#6c71c4' # bright blue (folder) blue = '#53a4f3' # Bright Blue (Folder)
magenta= '#d33682' # bright magenta magenta = '#a94dbb' # Bright Magenta
cyan= '#2aa198' # bright cyan cyan = '#26bad1' # Bright Cyan
white= '#073642' # bright white white = '#d8d8d8' # Bright White
[colors.primary] [colors.primary]
background= '#FDF6E3' # Background background = '#eaeaea' # Background
foreground= '#657B83' # Foreground (Text) foreground = '#222221' # Foreground (Text)
[colors.cursor] [colors.cursor]
cursor= '#657b83' # cursor cursor = '#16aec9' # Cursor
text= '#FDF6E3' # Background text = '#eaeaea' # Cursor Text
[colors.selection]
background = '#c1c1c1' # Selection Background
foreground = '#eaeaea' # Selection Foreground

View File

@ -20,13 +20,18 @@ if status is-interactive
alias reboot="systemctl reboot" alias reboot="systemctl reboot"
alias hr="date +'%Hh:%M, %d-%m-%Y'" alias hr="date +'%Hh:%M, %d-%m-%Y'"
alias hi="systemctl hibernate" alias hi="systemctl hibernate"
alias ff="fastfetch" alias ff="fastfetch --config examples/19"
alias feh="imv" alias feh="imv"
alias lg="lazygit" alias lg="lazygit"
alias cpr="cd ~/repos/cports-docker && docker compose run --build --rm cports" alias cpr="cd ~/repos/cports-docker && docker compose run --build --rm cports"
alias cop="wl-copy" alias cop="wl-copy"
alias poweroff="systemctl poweroff" alias poweroff="systemctl poweroff"
alias cat="bat" alias cat="bat"
alias protontricks='flatpak run com.github.Matoking.protontricks'
alias protontricks-launch='flatpak run --command=protontricks-launch com.github.Matoking.protontricks'
alias generate_token="curl -u jabuxas https://paste.jabuxas.xyz | wl-copy"
end end
function pst function pst
@ -55,6 +60,32 @@ function pst
end end
end end
function pstf
set -l file
set -l use_ansifilter false
if command -v ansifilter > /dev/null
set use_ansifilter true
end
if command test -p /dev/stdin
set file "/tmp/tmp.txt"
if test $use_ansifilter = true
ansifilter > $file
else
cat > $file
end
else if test -n "$argv[1]"
set file "$argv[1]"
end
curl -F "file=@$file" -Fsecret= -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
if command test -p /dev/stdin
rm "$file"
end
end
function last_history_item function last_history_item
echo $history[1] echo $history[1]
end end

View File

@ -26,7 +26,7 @@ SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrbl
SETUVAR fish_color_status:red SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_key_bindings:fish_vi_key_bindings SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_background:\x1d SETUVAR fish_pager_color_background:\x1d
SETUVAR fish_pager_color_completion:B3A06D SETUVAR fish_pager_color_completion:B3A06D
SETUVAR fish_pager_color_description:B3A06D SETUVAR fish_pager_color_description:B3A06D

View File

@ -1,11 +1,11 @@
[main] [main]
font=Lilex:size=14:antialias=true:style=SemiBold font=CozetteVector:size=14:antialias=true:style=SemiBold
dpi-aware=no dpi-aware=no
fields=name,generic,comment,categories,filename,keywords fields=name,generic,comment,categories,filename,keywords
terminal=foot -e terminal=foot -e
prompt="Search  " prompt="Search  "
icon-theme=Papirus icon-theme=Papirus
icons-enabled=no icons-enabled=yes
show-actions=yes show-actions=yes
anchor=top anchor=top
lines=10 lines=10
@ -20,12 +20,12 @@ layer = top
exit-on-keyboard-focus-loss = yes exit-on-keyboard-focus-loss = yes
[colors] [colors]
background=002b36ff background=0a0c10ff
text=839496ff text=f0f3f6ff
match=9ece6aff match=ffb1afff
selection=2aa198ff selection=cb9effff
selection-text=1a1b26ff selection-text=1a1b26ff
border=2aa198ff border=cb9effff
[border] [border]
width=2 width=2

View File

@ -29,7 +29,7 @@ case "$CHOICE" in
~/scripts/swww.sh $EVERFOREST_WIDE_WPP $EVERFOREST_NORMAL_WPP ~/scripts/swww.sh $EVERFOREST_WIDE_WPP $EVERFOREST_NORMAL_WPP
gsettings set org.gnome.desktop.interface gtk-theme Everforest-Dark-BL gsettings set org.gnome.desktop.interface gtk-theme Everforest-Dark-BL
gsettings set org.gnome.desktop.interface icon-theme Everforest-Dark gsettings set org.gnome.desktop.interface icon-theme
ln -sf ~/.config/tmux/themes/tmux-everforest.conf ~/.config/tmux/theme.conf ln -sf ~/.config/tmux/themes/tmux-everforest.conf ~/.config/tmux/theme.conf
tmux source-file ~/.config/tmux/tmux.conf tmux source-file ~/.config/tmux/tmux.conf

View File

@ -0,0 +1,40 @@
#!/usr/bin/env fish
set CURRENT_THEME (cat ~/colorscheme)
echo $CURRENT_THEME
set wpp1_white ~/pics/wallpapers/wh1.png
set wpp2_white ~/pics/wallpapers/wh2.jpg
set wpp1_solarized ~/pics/wallpapers/b1.png
set wpp2_solarized ~/pics/wallpapers/b2.png
swaymsg reload
switch $CURRENT_THEME
case black
echo changing to white ...
gsettings set org.gnome.desktop.interface gtk-theme "Windows-95"
gsettings set org.gnome.desktop.interface icon-theme "nineicons-redux-v0.6"
swaymsg shadows enable
sed -i 's|black.toml|white.toml|' ~/.config/alacritty/alacritty.toml
pkill waybar; waybar -s ~/.config/waybar/style-white.css &> /dev/null & disown
~/scripts/swww.sh $wpp1_white $wpp2_white
ln -sf ~/.config/tmux/themes/tmux-white.conf ~/.config/tmux/theme.conf
tmux source ~/.config/tmux/tmux.conf
echo white > ~/colorscheme
case white
echo changing to black...
gsettings set org.gnome.desktop.interface gtk-theme "Material-Black-Blueberry-LA"
gsettings set org.gnome.desktop.interface icon-theme "We10X-black-dark"
swaymsg shadows disable
swaymsg client.focused "#ffffff #ffffff #c1c1c1"
swaymsg client.focused_inactive "#c1c1c1 #212121 #cecece"
sed -i 's|white.toml|black.toml|' ~/.config/alacritty/alacritty.toml
pkill waybar; waybar &> /dev/null & disown
~/scripts/swww.sh $wpp1_solarized $wpp2_solarized
ln -sf ~/.config/tmux/themes/tmux-monochrome.conf ~/.config/tmux/theme.conf
tmux source ~/.config/tmux/tmux.conf
echo black > ~/colorscheme
case '*'
echo mmmm what?
end

View File

@ -16,13 +16,13 @@ if [[ -z "$1" ]]; then
FIRST=~/pics/wallpapers/melange2.png FIRST=~/pics/wallpapers/melange2.png
SECOND=~/pics/wallpapers/melange1.jpg SECOND=~/pics/wallpapers/melange1.jpg
;; ;;
white) # todo white)
FIRST=~/pics/wallpapers/sl3.jpg FIRST=~/pics/wallpapers/wh1.png
SECOND=~/pics/wallpapers/sl2.png SECOND=~/pics/wallpapers/wh2.jpg
;; ;;
solarized) solarized)
FIRST=~/pics/wallpapers/solarized5.jpg FIRST=~/pics/wallpapers/sl6.jpg
SECOND=~/pics/wallpapers/solarized4.png SECOND=~/pics/wallpapers/sl7.jpg
;; ;;
monochrome) monochrome)
FIRST=~/pics/wallpapers/monochrome-1.png FIRST=~/pics/wallpapers/monochrome-1.png
@ -43,4 +43,4 @@ sleep 0.3
swww img -o HDMI-A-1 $FIRST swww img -o HDMI-A-1 $FIRST
swww img -o DP-2 $SECOND swww img -o DP-2 $SECOND
swww img -o DP-3 ~/pics/wallpapers/cottage.jpg swww img -o DP-3 ~/pics/wallpapers/sl4.jpg

View File

@ -0,0 +1,22 @@
#!/usr/bin/env fish
# Check if alacritty.toml exists; if not, raise an alert and exit
if not test -f ~/.config/alacritty/alacritty.toml
notify-send "alacritty.toml does not exist"
exit 0
end
# Fetch opacity from alacritty.toml
set opacity (awk '$1 == "opacity" && $2 == "=" {print $3; exit}' ~/.config/alacritty/alacritty.toml)
# Assign toggle opacity value
switch $opacity
case 1
set toggle_opacity 0.93
case '*'
set toggle_opacity 1
end
# Replace opacity value in alacritty.toml
sed -i -- "s/opacity = $opacity/opacity = $toggle_opacity/" ~/.config/alacritty/alacritty.toml

View File

@ -65,20 +65,10 @@ fi
pst() { pst() {
local file local file
local use_ansifilter=false
# Check if ansifilter exists
if command -v ansifilter >/dev/null 2>&1; then
use_ansifilter=true
fi
if [[ -p /dev/stdin ]]; then if [[ -p /dev/stdin ]]; then
file=$(mktemp) file=$(mktemp)
if $use_ansifilter; then
ansifilter > "$file"
else
cat > "$file" cat > "$file"
fi
elif [[ -n $1 ]]; then elif [[ -n $1 ]]; then
file="$1" file="$1"
else else

View File

@ -1,3 +1,13 @@
include ~/.config/sway/settings/* include ~/.config/sway/settings/*
blur enable
blur_passes 2
blur_radius 2
blur_noise 0.2
shadow_on_csd enable
shadow_color #424242
shadow_offset 12 12
shadow_blur_radius 10
# vim: ts=2 sts=2 sw=2 ft=swayconfig # vim: ts=2 sts=2 sw=2 ft=swayconfig

View File

@ -16,9 +16,9 @@ mode "resize" {
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
bindsym $mod+b exec firefox-bin bindsym $mod+Shift+b exec firefox-bin
bindsym $mod+Shift+apostrophe exec ~/scripts/switch.fish bindsym $mod+Shift+apostrophe exec ~/scripts/switch.fish
bindsym $mod+Shift+b exec qutebrowser bindsym $mod+b exec FUSERMOUNT_PROG=/bin/fusermount ./.local/share/AppImage/ZenBrowser.AppImage
bindsym $mod+Shift+d exec flatpak run de.shorsh.discord-screenaudio bindsym $mod+Shift+d exec flatpak run de.shorsh.discord-screenaudio
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+Shift+c kill bindsym $mod+Shift+c kill

View File

@ -1,13 +1,13 @@
output { output {
# HDMI-A-1 pos 0 0 mode --custom 2560x1080@75Hz # HDMI-A-1 pos 0 0 mode --custom 2560x1080@75Hz
HDMI-A-1 pos 0 0 HDMI-A-1 pos 0 0
DP-3 disable pos 0 -1080 DP-3 pos 0 -1080
DP-2 pos 2560 0 DP-2 pos 2560 0
} }
default_border pixel 2 default_border pixel 2
client.focused #268bd2 #268bd2 #002b36 client.focused #16aec9 #16aec9 #222221
client.focused_inactive #268bd2 #002b36 #839496 client.focused_inactive #16aec9 #222221 #c1c1c1
focus_on_window_activation none focus_on_window_activation none
popup_during_fullscreen smart popup_during_fullscreen smart
no_focus [window_role="pop-up"] no_focus [window_role="pop-up"]

View File

@ -1,12 +1,9 @@
set $gnome-schema org.gnome.desktop.interface set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'NumixSolarizedDarkCyan'
gsettings set $gnome-schema icon-theme 'Numix-Circle'
gsettings set $gnome-schema cursor-theme 'Simp1e'
gsettings set $gnome-schema font-name 'UbuntuMono Nerd Font Mono 16'
}
exec { exec {
gsettings set $gnome-schema gtk-theme "Material-Black-Blueberry-LA"
gsettings set $gnome-schema icon-theme "We10X-black-dark"
gsettings set $gnome-schema cursor-theme 'Simp1e'
gsettings set $gnome-schema font-name 'CozetteVector 12'
xrandr --output HDMI-A-1 --primary xrandr --output HDMI-A-1 --primary
waybar & waybar &
autotiling & autotiling &

View File

@ -26,6 +26,7 @@ for_window [class="cs2"] move to workspace 9, fullscreen enable
for_window [class=".*steam_.*"] move to workspace 9, floating enable for_window [class=".*steam_.*"] move to workspace 9, floating enable
for_window [class="client-win64-shipping.exe"] move to workspace 10, floating enable for_window [class="client-win64-shipping.exe"] move to workspace 10, floating enable
for_window [title="Wuthering Waves "] move to workspace 9, fullscreen enable for_window [title="Wuthering Waves "] move to workspace 9, fullscreen enable
for_window [instance="CoreKeeper"] move to workspace 9, fullscreen enable
for_window [class="Melvor Idle"] move to workspace 10 for_window [class="Melvor Idle"] move to workspace 10
# firefox tweaks # firefox tweaks

View File

@ -1 +1 @@
/yang/.config/tmux/themes/tmux-solarized.conf /yang/.config/tmux/themes/tmux-white.conf

View File

@ -1,25 +0,0 @@
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_flavour 'mocha'
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"
set -g @catppuccin_status_modules_right ""
set -g @catppuccin_status_left_separator " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"
set -g @catppuccin_directory_text "#{pane_current_path}"
set -g status-position top

View File

@ -1,4 +0,0 @@
set -g @plugin 'bobcats/everforest-tmux'
set -g @everforest_theme 'dark-hard'
set -g status-right "#{playerctl_short} | #(whoami)@#h "

View File

@ -10,11 +10,11 @@ set-option -g status-fg black
# Left side of status bar # Left side of status bar
set-option -g status-left-length 20 set-option -g status-left-length 20
#set-option -g status-left "#[fg=brightblack,bg=colour255] #S #[fg=default,bg=default] " #set-option -g status-left "#[fg=brightblack,bg=colour255] #S #[fg=default,bg=default] "
set-option -g status-left '#{?client_prefix,#[bg=colour195]  ,#[bg=colour195] #S }#[fg=default,bg=default] ' set-option -g status-left '#{?client_prefix,#[bg=colour14]  ,#[bg=colour14] #S }#[fg=default,bg=default] '
# Window status # Window status
set-option -g window-status-format "#[fg=black,bg=white] #I #[fg=black,bg=white] #W " set-option -g window-status-format "#[fg=black,bg=white] #I #[fg=black,bg=white] #W "
set-option -g window-status-current-format "#[fg=brightblack,bg=colour195] #I #[fg=brightblack,bg=colour195] #W " set-option -g window-status-current-format "#[fg=brightblack,bg=colour14] #I #[fg=brightblack,bg=colour14] #W "
set-option -g window-status-separator " " set-option -g window-status-separator " "
set-option -g status-justify left set-option -g status-justify left
@ -25,7 +25,7 @@ set -g @short_length "50"
# pane border # pane border
set -g pane-border-style fg=colour238,bg=colour235 set -g pane-border-style fg=colour238,bg=colour235
set -g pane-active-border-style fg=colour195,bg=colour236 set -g pane-active-border-style fg=colour14,bg=colour236
# Pane number indicator # Pane number indicator
set-option -g display-panes-colour colour255 set-option -g display-panes-colour colour255

View File

@ -4,30 +4,30 @@
/* padding: 0; */ /* padding: 0; */
/* margin: 0; */ /* margin: 0; */
font-size: 18px; font-size: 18px;
font-family: UbuntuMono Nerd Font Mono; font-family: CozetteVector;
font-style: italic; font-style: italic;
} }
window#waybar { window#waybar {
background: #fdf6e3; background: #eaeaea;
color: #000; color: #222221;
margin: 10px; margin: 10px;
} }
#workspaces button { #workspaces button {
margin-left: 2px; margin-left: 2px;
padding: 2px 8px; padding: 2px 8px;
color: #000; color: #222221;
} }
#workspaces button:hover, #workspaces button:hover,
#workspaces button:active { #workspaces button:active {
background-color: #004d61; background-color: #004d61;
color: #000; color: #222221;
} }
#workspaces button.focused { #workspaces button.focused {
background-color: #eee8d5; background-color: #c1c1c1;
} }
#language { #language {

View File

@ -4,13 +4,13 @@
/* padding: 0; */ /* padding: 0; */
/* margin: 0; */ /* margin: 0; */
font-size: 18px; font-size: 18px;
font-family: UbuntuMono Nerd Font Mono; font-family: CozetteVector;
font-style: italic; font-style: italic;
} }
window#waybar { window#waybar {
background: #002b36; background: #0a0c10;
color: #ffffff; color: #f0f3f6;
margin: 10px; margin: 10px;
} }
@ -21,12 +21,13 @@ window#waybar {
#workspaces button:hover, #workspaces button:hover,
#workspaces button:active { #workspaces button:active {
background-color: #004d61; background-color: #424242;
color: #839496; color: #f0f3f6;
} }
#workspaces button.focused { #workspaces button.focused {
background-color: #004d61; background-color: #424242;
color: #f0f3f6;
} }
#language { #language {

View File

@ -1,47 +0,0 @@
#!/bin/bash
sh ~/scripts/screenlayout.sh
nitrogen --restore &
nvidia-settings --load-config-only
setxkbmap br abnt2
xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.1
#pulseaudio --start
#picom &
/home/klein/.local/bin/picom-pijulius -b --experimental-backends --animations --animation-for-open-window zoom --vsync &
# /home/klein/.local/bin/picom-jonaburg &
numlockx on
mpd &
dunst &
lxqt-policykit-agent &
touch ~/tmp/touchy
rm -rf ~/tmp/*
#killall pasystray; pasystray & # killlall is needed in case you reset dwm, it will just spawn infinites pasystrays
/usr/bin/emacs --daemon &
#/home/lucas/.local/bin/idle &
#urxvtd --quiet --opendisplay --fork
#xrdb -merge ~/.Xresources
#otd &
#discord & # If using regular discord.
#flatpak run com.discordapp.Discord & # If using flatpak
#steam &
#nohup xwinwrap -g 1920x1080 -s -b -un -nf -ni -fdt -argb -st -ov -sp -- mpv -wid WID --framedrop=vo --no-audio --really-quiet --panscan="1.0" /home/lucas/wpp\&stuff/wallpapers/Fireworks-Reflections.mp4 -loop 0 &
#nohup xwinwrap -g 1400x900+1920+180 -s -b -un -nf -ni -fdt -argb -st -ov -sp -- mpv -wid WID --framedrop=vo --no-audio --really-quiet --panscan="1.0" /home/lucas/wpp\&stuff/kyoko_animated_wallpaper.mp4 -loop 0

View File

@ -1,3 +0,0 @@
#!/bin/bash
top -bn2 | grep '%Cpu' | tail -1 | grep -P '(....|...) id,'|awk '{print "" 100-$8 "%"}'

View File

@ -1,3 +0,0 @@
#!/bin/bash
exec xautolock -detectsleep -time 10 -locker "/usr/bin/betterlockscreen -l" -notify 30 -notifier "notify-send -u critical -t 10000 -- 'LOCKING screen in 30 seconds"

View File

@ -1,12 +0,0 @@
#!/bin/bash
# More efficient version of the above.
free -h | while read What TTL Used _; do
if [ "$What" = 'Mem:' ]; then
printf '%s/%s \n' "$Used" "$TTL"
break
fi
done

View File

@ -1,9 +0,0 @@
#!/bin/bash
setxkbmap br abnt2
xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.1
# xinput --set-prop 'pointer:''Microsoft Microsoft Basic Optical Mouse v2.0 ' 'libinput Accel Profile Enabled' 0, 1
# xinput --set-prop 'pointer:''Microsoft Microsoft Basic Optical Mouse v2.0 ' 'libinput Accel Speed' 0.1

View File

@ -1,9 +0,0 @@
#!/bin/sh
mpt=$(mpc current -f %title%)
mpa=$(mpc current -f %artist%)
icon1=' '
icon2=''
echo "$mpt"

View File

@ -1,12 +0,0 @@
#!/bin/bash
name="$HOME/pics/screenshots/screenshot-$(date -Iseconds | cut -d '+' -f1).png"
if [[ $XDG_SESSION_TYPE == "x11" ]]; then
maim -u -n -l -c 0.157,0.333,0.466,0.4 $name
xclip -selection clipboard -t image/png $name
fi
if [[ $XDG_SESSION_TYPE == "wayland" ]]; then
grim $name
$name
fi

View File

@ -1,13 +0,0 @@
#!/bin/bash
name="$HOME/pics/screenshots/screenshot-$(date -Iseconds | cut -d '+' -f1).png"
if [[ $XDG_SESSION_TYPE == "x11" ]]; then
maim -u -s $name
xclip -selection clipboard -t image/png $name
fi
if [[ $XDG_SESSION_TYPE == "wayland" ]]; then
grim -g "$(slurp)" $name
xclip -selection clipboard -t image/png $name
wl-copy < $name
fi

View File

@ -1,11 +0,0 @@
#!/bin/bash
tmp="$HOME/tmp/tmp.png"
if [[ $XDG_SESSION_TYPE == "x11" ]]; then
maim -u -s "$tmp"
curl -F'file=@'"${tmp}" https://0x0.st | xclip -sel clip
fi
if [[ $XDG_SESSION_TYPE == "wayland" ]]; then
grim -g "$(slurp)" $tmp
curl -F'file=@'"${tmp}" -H 'X-Auth: '$(cat ~/.key) https://paste.jabuxas.xyz | wl-copy
fi

View File

@ -1,30 +0,0 @@
#!/bin/bash
swpy_dir="${XDG_CONFIG_HOME:-$HOME/.config}/swappy"
save_dir="$HOME/pics/screenshots"
save_file="screenshot-$(date -Iseconds | cut -d '+' -f1).png"
temp_screenshot="/tmp/screenshot.png"
mkdir -p $save_dir
mkdir -p $swpy_dir
echo -e "[Default]\nsave_dir=$save_dir\nsave_filename_format=$save_file" > $swpy_dir/config
if [[ $XDG_SESSION_TYPE == "x11" ]]; then
maim -i $(xdotool getactivewindow) | xclip -sel clip -t image/png
fi
if [[ $XDG_SESSION_TYPE == "wayland" ]]; then
if [[ $XDG_CURRENT_DESKTOP == "Hyprland" ]]; then
window_info=$(hyprctl activewindow)
coordinates=$(echo "$window_info" | grep -oP 'at: \K([0-9]+,[0-9]+)')
size=$(echo "$window_info" | grep -oP 'size: \K([0-9]+,[0-9]+)')
IFS=',' read -r x y <<< "$coordinates"
IFS=',' read -r width height <<< "$size"
grim -g "${x},${y} ${width}x${height}" ~/tmp/jabuxas.png
wl-copy < ~/tmp/jabuxas.png
fi
if [[ $XDG_CURRENT_DESKTOP == "sway" ]]; then
rm $temp_screenshot
grim -g "$(swaymsg -t get_tree | jq -j '.. | select(.type?) | select(.focused).rect | "\(.x),\(.y) \(.width)x\(.height)"')" $temp_screenshot
wl-copy < ~/tmp/jabuxas.png
swappy -f $temp_screenshot
fi
fi

View File

@ -1,5 +0,0 @@
## Dependencies
for a x11 session, you only need xclip, xdotool and maim
for wayland session it should work on hyprland and sway

View File

@ -1,29 +0,0 @@
#!/usr/bin/env fish
set CURRENT_THEME (cat ~/colorscheme)
echo $CURRENT_THEME
set wpp1_white ~/pics/wallpapers/sl3.jpg
set wpp2_white ~/pics/wallpapers/sl2.png
set wpp1_solarized ~/pics/wallpapers/sl6.jpg
set wpp2_solarized ~/pics/wallpapers/sl7.jpg
switch $CURRENT_THEME
case solarized
echo changing to white ...
sed -i 's|solarized-dark.toml|white.toml|' ~/.config/alacritty/alacritty.toml
pkill waybar; waybar -s ~/.config/waybar/style-white.css &> /dev/null & disown
~/scripts/swww.sh $wpp1_white $wpp2_white
echo white > ~/colorscheme
case white
echo changing to solarized ...
sed -i 's|white.toml|solarized-dark.toml|' ~/.config/alacritty/alacritty.toml
pkill waybar; waybar &> /dev/null & disown
~/scripts/swww.sh $wpp1_solarized $wpp2_solarized
echo solarized > ~/colorscheme
case '*'
echo mmmm what?
end
swaymsg reload

View File

@ -1,7 +0,0 @@
#!/bin/sh
upt="$(uptime --pretty | sed -e 's/up //g' -e 's/ days/d/g' -e 's/ day/d/g' -e 's/ hours/h/g' -e 's/ hour/h/g' -e 's/ minutes/m/g' -e 's/, / /g')"
echo -e "$upt "

View File

@ -1,5 +0,0 @@
#!/bin/sh
vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
echo "${vol}%"

View File

@ -1,45 +0,0 @@
#!/usr/bin/env sh
swpy_dir="${XDG_CONFIG_HOME:-$HOME/.config}/swappy"
save_dir="$HOME/pics/screenshots"
save_file="screenshot-$(date -Iseconds | cut -d '+' -f1).png"
temp_screenshot="/tmp/screenshot.png"
mkdir -p $save_dir
mkdir -p $swpy_dir
echo -e "[Default]\nsave_dir=$save_dir\nsave_filename_format=$save_file" > $swpy_dir/config
upload ()
{
curl -F'file=@'"${save_dir}/${save_file}" -H 'X-Auth: '$(cat ~/.key) https://paste.jabuxas.xyz | wl-copy
}
function print_error
{
cat << "EOF"
./way-print.sh <action>
...valid actions are...
p : print all screens
s : snip current screen
m : print focused monitor
t : tmp print
cw: current window
EOF
}
case $1 in
p) # print all outputs
grim $temp_screenshot && swappy -f $temp_screenshot ;;
s) # drag to manually snip an area / click on a window to print it
grim -g "$(slurp)" $temp_screenshot && swappy -f $temp_screenshot ;;
m) # print focused monitor
grim -o $(swaymsg -t get_workspaces | jq -r '.[] | select(.focused==true).output') $temp_screenshot && swappy -f $temp_screenshot ;;
t) #upload to paste temporarily
grim -g "$(slurp)" $temp_screenshot && swappy -f $temp_screenshot && upload ;;
cw) #current window
~/.local/bin/print-window.sh ;;
*) # invalid option
print_error ;;
esac
rm "$temp_screenshot"

View File

@ -1,21 +0,0 @@
#!/bin/bash
setxkbmap br abnt2
xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.1
#pulseaudio --start
#picom &
#numlockx on
mpd &
touch ~/tmp/touchy
rm -rf ~/tmp/*
/usr/bin/emacs --daemon &
otd &

View File

@ -1,57 +0,0 @@
#!/bin/bash
sh ~/scripts/screenlayout.sh
nitrogen --restore &
nvidia-settings --load-config-only
trayer-srg -l --edge top --align right --SetDockType true --SetPartialStrut true \
--expand true --width 9 --tint 0xFF181814 --height 27 --transparent false --distance 2 --margin 1 &
# /usr/bin/gentoo-pipewire-launcher &
if [ -x /usr/bin/nm-applet ] ; then
nm-applet --sm-disable &
fi
setxkbmap br abnt2
xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.1
#pulseaudio --start
#picom &
# /home/klein/.local/bin/picom-pijulius -b --experimental-backends --animations --animation-for-open-window zoom --vsync &
/home/klein/.local/bin/picom-pijulius --experimental-backends --animations --animation-for-open-window zoom --glx-no-stencil --xrender-sync-fence -b &
# /home/klein/.local/bin/picom-jonaburg &
numlockx on
mpd &
dunst &
lxqt-policykit-agent &
touch ~/tmp/touchy
rm -rf ~/tmp/*
#killall pasystray; pasystray & # killlall is needed in case you reset dwm, it will just spawn infinites pasystrays
/usr/bin/emacs --daemon &
#/home/lucas/.local/bin/idle &
#urxvtd --quiet --opendisplay --fork
#xrdb -merge ~/.Xresources
# otd &
#discord & # If using regular discord.
#flatpak run com.discordapp.Discord & # If using flatpak
#steam &
#nohup xwinwrap -g 1920x1080 -s -b -un -nf -ni -fdt -argb -st -ov -sp -- mpv -wid WID --framedrop=vo --no-audio --really-quiet --panscan="1.0" /home/lucas/wpp\&stuff/wallpapers/Fireworks-Reflections.mp4 -loop 0 &
#nohup xwinwrap -g 1400x900+1920+180 -s -b -un -nf -ni -fdt -argb -st -ov -sp -- mpv -wid WID --framedrop=vo --no-audio --really-quiet --panscan="1.0" /home/lucas/wpp\&stuff/kyoko_animated_wallpaper.mp4 -loop 0