Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
139614b
feat: add ghci prompt
halivert Jun 11, 2022
a18a071
feat: improve dotfiles
halivert Jun 11, 2022
625cb6f
feat: update vim and coc settings
halivert Jun 30, 2022
357b528
feat: update stuff
halivert Sep 28, 2022
82ac825
feat: move to nvim-lsp
halivert Nov 10, 2022
fb3bf35
feat: update plugins
halivert Dec 3, 2022
a1c289b
feat: merge main
halivert Dec 3, 2022
2b8b98d
feat: update gitconfig
halivert Dec 3, 2022
2022e05
feat: add nvim init.lua
halivert Dec 3, 2022
aef5b15
Merge https://github.com/halivert/dotfiles
halivert Dec 3, 2022
6f1e09b
fix: remove eslint
halivert Dec 6, 2022
0cda8dc
feat: update i3 files
halivert Dec 14, 2022
0dab514
feat: update gtk config
halivert Dec 14, 2022
ed6d20e
feat: remove unused shortcut
halivert Dec 14, 2022
9e501e4
feat: update i3 files
halivert Dec 15, 2022
2c88cbe
feat: add dunst
halivert Dec 16, 2022
50bc20b
feat: create script for toggle sinks
halivert Dec 16, 2022
0ddedd0
feat: update i3 config
halivert Dec 22, 2022
feb4326
feat: add dunst config
halivert Dec 22, 2022
3e7e695
feat: update icons
halivert Dec 22, 2022
1139ec1
chore: lowercase
halivert Dec 22, 2022
45d9fb0
feat: improve dunst colors
halivert Dec 22, 2022
7e3f835
feat: update dunst files
halivert Dec 28, 2022
0383cd1
feat: update dunst actions
halivert Dec 30, 2022
2acec96
fix: bar wasn't displaying in nonprimary screen
halivert Jan 5, 2023
b058037
feat: update bins and nvim config
halivert Mar 2, 2023
ac8b700
feat: try to add improvements
halivert Mar 2, 2023
2b1af85
fix: tray in bars
halivert Mar 2, 2023
d6f11d7
feat: improve zshrc files
halivert Mar 2, 2023
46689d6
feat: add luasnip
halivert Apr 2, 2023
0bc814f
feat: update vim plugins
halivert Apr 8, 2023
99257b3
feat: improve zshrc
halivert May 25, 2023
c7eb69c
chore: update
halivert Sep 6, 2023
d5cde9f
feat: update dotfiles
halivert Dec 31, 2023
2a91dcc
feat: update alacritty
halivert Jan 2, 2024
1e84431
feat: update submodules names
halivert Jan 8, 2024
e2dbf7e
feat: update submodules
halivert Jan 8, 2024
9613830
feat: update alacritty-themes url
halivert Jan 8, 2024
0a3e694
feat: update alacritty themes
halivert Jan 8, 2024
06dd6c9
feat: update i3 and dotfiles
halivert Jul 19, 2024
cae91b6
chore: updates
halivert Oct 4, 2024
facb608
chore: update bluejay
halivert Dec 8, 2024
8349666
feat: raven update
halivert Dec 8, 2024
57b72a2
feat: update bluejay
halivert Dec 8, 2024
4e1a8c6
feat(bluejay): try to update font issues
halivert Dec 9, 2024
874718d
fix(bluejay): fonts
halivert Dec 9, 2024
84b685c
feat(bluejay): update i3 fonts
halivert Dec 9, 2024
f76b154
feat: update dotfiles
halivert Feb 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 31 additions & 7 deletions .bin/change-primary-screen
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
#!/bin/sh

PRIMARY=$(xrandr --prop | rg primary | awk '{ print $1 }')
NONPRIMARY=$(xrandr --prop | rg connected | rg -v primary | awk '{ print $1 }')
# # # # # # # # # # # # # # # # # # # # # # # #
# Setup to change screens with i3 and xrandr #
# # # # # # # # # # # # # # # # # # # # # # # #

xrandr --output $PRIMARY --noprimary
xrandr --output $NONPRIMARY --primary
get_workspaces () {
i3-msg -t get_workspaces | jq ".[] | select(.output==\"$1\").name" -r
}

workspace_toggle_output () {
for i in $1; do
i3-msg "[workspace=\"$i\"]" move workspace to output $2 > /dev/null 2>&1
done
}

get_selected_output () {
rg "set $1" ~/.config/i3/conf.d/20-workspaces.i3config | awk '{ print $3 }'
}

PRIMARY=$(get_selected_output '\$primary')
NOPRIMARY=$(get_selected_output '\$nonprimary')

xrandr --output "$PRIMARY" --noprimary
xrandr --output "$NOPRIMARY" --primary

sed -i \
-e "5 s/$PRIMARY/$NONPRIMARY/" \
-e "6 s/$NONPRIMARY/$PRIMARY/" \
-e "5 s/$PRIMARY/$NOPRIMARY/" \
-e "6 s/$NOPRIMARY/$PRIMARY/" \
$HOME/.config/i3/conf.d/20-workspaces.i3config

$HOME/.bin/i3-mkconfig && i3-msg restart
$HOME/.bin/i3-mkconfig && i3-msg restart > /dev/null

PRIMARY_WORKSPACES=$(get_workspaces "$PRIMARY")
NOPRIMARY_WORKSPACES=$(get_workspaces "$NOPRIMARY")

workspace_toggle_output "$PRIMARY_WORKSPACES" "$NOPRIMARY"
workspace_toggle_output "$NOPRIMARY_WORKSPACES" "$PRIMARY"
6 changes: 6 additions & 0 deletions .bin/get-m3u-video
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/bash

# https://video.twimg.com/amplify_video/1669785809682046976/pl/720x720/4Et86JY_QPiiaGS-.m3u8?container=fmp4
URL=$1
OUT=$2
ffmpeg -i "$URL" -c copy -bsf:a aac_adtstoasc $OUT
7 changes: 7 additions & 0 deletions .bin/i3status
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

i3status $@ | while :
do
read line
echo "$line" || exit 1
done
37 changes: 37 additions & 0 deletions .bin/kramdown-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#! /bin/bash

PROGRAM=$(basename $0)

OPTS=$(getopt -o 't:p:' --long 'template:,placeholder:' -n "$PROGRAM" -- "$@")

if [ $? != 0 ] ; then echo "Error" >&2 ; exit 1 ; fi

eval set -- "$OPTS"
unset OPTS

TEMPLATE="template.html"
PLACEHOLDER="{{ content }}"

while true; do
case "$1" in
-t | --template ) TEMPLATE="$2"; shift 2 ;;
-p | --placeholder ) PLACEHOLDER="$2"; shift 2 ;;
-- ) shift; break ;;
* ) break ;;
esac
done

INPUT=$1

if [ ! -e "$INPUT" ]; then
echo "Archivo $INPUT no existe :(";
exit 1;
fi

EXP="/$PLACEHOLDER/r"
REMOVE="s/$PLACEHOLDER//g"

OUT=$(basename $INPUT .md)

sed "$EXP"<(kramdown $INPUT) $TEMPLATE | sed "$REMOVE" > $OUT.html
echo "¡$OUT.html generado! 🎉"
3 changes: 3 additions & 0 deletions .bin/logwheel
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

echo "Params: $@" >> $HOME/.cache/wheelevent
6 changes: 6 additions & 0 deletions .bin/reset-hdmi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/bash

xrandr --output HDMI-1 --off \
&& xrandr --output HDMI-1 --above eDP-1 --mode 1920x1080

~/.fehbg
16 changes: 16 additions & 0 deletions .bin/set-last-outputs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# # # # # # # # # # # # # # # # # # # # # # # # # # #
# Setup to set last output arrangement with xrandr #
# # # # # # # # # # # # # # # # # # # # # # # # # # #

get_selected_output () {
rg "set $1" ~/.config/i3/conf.d/20-workspaces.i3config | awk '{ print $3 }'
}

PRIMARY=$(get_selected_output '\$primary')
NOPRIMARY=$(get_selected_output '\$nonprimary')

xrandr --output "$NOPRIMARY" --noprimary
xrandr --output "$PRIMARY" --primary

19 changes: 19 additions & 0 deletions .bin/toggle-sink
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /bin/bash

AVAILABLE=($(pacmd list-sinks | rg 'index:' | awk '{ print $2 }'))
LEN=${#AVAILABLE[@]}

if [ $LEN -le 1 ]; then
exit 1
fi

for (( i = 0; i < LEN; i++ )); do
if [ "${AVAILABLE[$i]}" == "index:" ]; then
break;
fi
done

NEXT=$(( ($i + 1) % $LEN ))

pacmd set-default-sink ${AVAILABLE[$NEXT]}
echo $AVAILALE[$NEXT]
Loading