autodetect doas in profile, fixed floating wibar (awesome), rules for im on awesome and auto center, fixed display detect in lfrc
This commit is contained in:
parent
a0048ec816
commit
42061bbe70
|
@ -37,6 +37,8 @@ fi
|
||||||
export heartost="/home/iceyrazor/.steam/root/steamapps/music/Heartbound - OST"
|
export heartost="/home/iceyrazor/.steam/root/steamapps/music/Heartbound - OST"
|
||||||
|
|
||||||
alias fukn="sudo $@"
|
alias fukn="sudo $@"
|
||||||
|
[ doas ] && alias fukn="doas $@"
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias lss="fukn du -ahd 1 | sort -h"
|
alias lss="fukn du -ahd 1 | sort -h"
|
||||||
alias lsu="lsblk --filter 'NAME=~\"sd[abcde]\"' -o NAME,MOUNTPOINTS"
|
alias lsu="lsblk --filter 'NAME=~\"sd[abcde]\"' -o NAME,MOUNTPOINTS"
|
||||||
|
@ -50,11 +52,6 @@ alias ff='fastfetch -c $HOME/.config/fastfetch/10.jsonc 2> /dev/null || fastfetc
|
||||||
alias ffchar='fastfetch -c $HOME/.config/fastfetch/ascii-char.jsonc'
|
alias ffchar='fastfetch -c $HOME/.config/fastfetch/ascii-char.jsonc'
|
||||||
# alias fastfetch='fastfetch --localip-show-ipv4 0 --kitty-direct /home/iceyrazor/stuff/media/ICE/Sprite-0009.png --logo-width 40 --logo-height 20'
|
# alias fastfetch='fastfetch --localip-show-ipv4 0 --kitty-direct /home/iceyrazor/stuff/media/ICE/Sprite-0009.png --logo-width 40 --logo-height 20'
|
||||||
alias numen="echo key x | fukn dotool && NUMEN_DMENU=rofi NUMEN_DMENU_OPTS='-show drun' LD_LIBRARY_PATH=/usr/lib/ numen & disown"
|
alias numen="echo key x | fukn dotool && NUMEN_DMENU=rofi NUMEN_DMENU_OPTS='-show drun' LD_LIBRARY_PATH=/usr/lib/ numen & disown"
|
||||||
|
|
||||||
[ "$(cat /etc/hostname)" = "Kasino" ] && alias fukn="doas $@"
|
|
||||||
[ "$(cat /etc/hostname)" = "Witchen" ] && alias fukn="doas $@"
|
|
||||||
[ "$(cat /etc/hostname)" = "Kan" ] && alias fukn="doas $@"
|
|
||||||
|
|
||||||
alias ascii="~/stuff/scripts/c/SDL/ascii/ascii"
|
alias ascii="~/stuff/scripts/c/SDL/ascii/ascii"
|
||||||
|
|
||||||
alias watchlss="fukn watch \"du -ah -d 1 | sort -hr\""
|
alias watchlss="fukn watch \"du -ah -d 1 | sort -hr\""
|
||||||
|
|
|
@ -261,7 +261,7 @@ awful.screen.connect_for_each_screen(function(screen)
|
||||||
spacerbg.bg = beautiful.bg_normal
|
spacerbg.bg = beautiful.bg_normal
|
||||||
|
|
||||||
screen.mywibox.bg = beautiful.wibar_background
|
screen.mywibox.bg = beautiful.wibar_background
|
||||||
screen.mywibox.ontop = true
|
screen.mywibox.ontop = false
|
||||||
screen.mywibox.floating = false
|
screen.mywibox.floating = false
|
||||||
|
|
||||||
local mykeyboardlayout = wibox.widget.background(mykeyboardlayout)
|
local mykeyboardlayout = wibox.widget.background(mykeyboardlayout)
|
||||||
|
@ -454,7 +454,15 @@ awful.rules.rules = {
|
||||||
class = { "steam_app*", "vesktop", "Minecraft*" }
|
class = { "steam_app*", "vesktop", "Minecraft*" }
|
||||||
},
|
},
|
||||||
properties = { border_width = 0 }
|
properties = { border_width = 0 }
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
rule = { name = "im-emoji-picker" },
|
||||||
|
properties = {
|
||||||
|
focusable = false,
|
||||||
|
focus = false,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
-- Set Firefox to always map on the tag named "2" on screen 1.
|
-- Set Firefox to always map on the tag named "2" on screen 1.
|
||||||
-- { rule = { class = "Firefox" },
|
-- { rule = { class = "Firefox" },
|
||||||
|
@ -471,6 +479,25 @@ if screen[2] then
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
client.connect_signal("manage", function(c)
|
||||||
|
if c.name == "im-emoji-picker" then
|
||||||
|
local focused = client.focus
|
||||||
|
if focused and focused ~= c then
|
||||||
|
-- Center on focused client
|
||||||
|
local geo = focused:geometry()
|
||||||
|
local c_geo = c:geometry()
|
||||||
|
|
||||||
|
c:geometry({
|
||||||
|
x = geo.x + (geo.width - c_geo.width) / 2,
|
||||||
|
y = geo.y + (geo.height - c_geo.height) / 2
|
||||||
|
})
|
||||||
|
else
|
||||||
|
-- Fallback: center on screen
|
||||||
|
awful.placement.centered(c, nil)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
-- {{{ Signals
|
-- {{{ Signals
|
||||||
-- Signal function to execute when a new client appears.
|
-- Signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c)
|
client.connect_signal("manage", function (c)
|
||||||
|
|
|
@ -152,7 +152,7 @@ esac
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd clip-path ${{
|
cmd clip-path ${{
|
||||||
if [ -z $WAYLAND_DISPLAY ]; then
|
if [ -z "${WAYLAND_DISPLAY-}" ]; then
|
||||||
printf "$f" | xclip -selection clipboard
|
printf "$f" | xclip -selection clipboard
|
||||||
else
|
else
|
||||||
printf "$f" | wl-copy
|
printf "$f" | wl-copy
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
cd ~/
|
||||||
|
|
||||||
|
fsynca () {
|
||||||
|
# t?
|
||||||
|
rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
|
||||||
|
}
|
||||||
|
|
||||||
|
fsyncb () {
|
||||||
|
printf "===confirm changes?\n"
|
||||||
|
read -p "y/n: " uinput
|
||||||
|
if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then
|
||||||
|
printf "\n\n\n"
|
||||||
|
rsync -RUurv --progress --size-only --delete-after $exclude $syncfile "$target"
|
||||||
|
printf "\n===end sync\n---------\n\n"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
syncfile=".surf/styles .urlview .gnupg .local/bin/lf-gadgets .local/share/applications/custom .config/FreeTube .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus stuff/notes stuff/openvpn-cons stuff/scripts stuff/media/ICE"
|
||||||
|
|
||||||
|
#sync game stuff
|
||||||
|
target="laptop:~"
|
||||||
|
exclude="--exclude mediamtx.yml --exclude stream.sh --exclude node_modules --exclude **/target"
|
||||||
|
|
||||||
|
|
||||||
|
fsynca
|
||||||
|
|
||||||
|
printf "==CC-survival unsynced\n\n"
|
||||||
|
|
||||||
|
fsyncb
|
|
@ -0,0 +1,31 @@
|
||||||
|
cd ~/
|
||||||
|
|
||||||
|
fsynca () {
|
||||||
|
# t?
|
||||||
|
rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
|
||||||
|
}
|
||||||
|
|
||||||
|
fsyncb () {
|
||||||
|
printf "===confirm changes?\n"
|
||||||
|
read -p "y/n: " uinput
|
||||||
|
if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then
|
||||||
|
printf "\n\n\n"
|
||||||
|
rsync -RUurv --progress --size-only --delete-after $exclude $syncfile "$target"
|
||||||
|
printf "\n===end sync\n---------\n\n"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
syncfile=".surf/styles .urlview .local/bin/lf-gadgets .local/share/applications/custom .config/newsboat .config/zsh .keepass .config/Pinta .config/cmus stuff/notes stuff/openvpn-cons stuff/media/ICE stuff/scripts/iceys-linux-stuffs stuff/scripts/system"
|
||||||
|
|
||||||
|
# stuff/scripts .gnupg
|
||||||
|
|
||||||
|
#sync game stuff
|
||||||
|
target="laptop2:~"
|
||||||
|
exclude="--exclude mediamtx.yml --exclude stream.sh --exclude node_modules --exclude **/target"
|
||||||
|
|
||||||
|
|
||||||
|
fsynca
|
||||||
|
|
||||||
|
printf "==CC-survival unsynced\n\n"
|
||||||
|
|
||||||
|
fsyncb
|
|
@ -7,7 +7,8 @@ if [ $artix ] || [ $arch ]; then
|
||||||
|
|
||||||
echo GETTING MIN REQS
|
echo GETTING MIN REQS
|
||||||
|
|
||||||
$sudo pacman -S neovim rsync man-db wget git lf fzf grep
|
$sudo pacman -S neovim rsync man-db wget git fzf grep
|
||||||
|
$sudo pacman -S lf
|
||||||
|
|
||||||
echo -------------
|
echo -------------
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue