Browse Source

Install script & SimCrop

main
Yiğit Çolakoğlu 4 years ago
parent
commit
e43c64e90a
15 changed files with 157 additions and 54 deletions
  1. +8
    -1
      arch-setup/AUR.txt
  2. +75
    -3
      arch-setup/nonAUR.txt
  3. +5
    -0
      install.sh
  4. +2
    -1
      mail/mutt/mailcap
  5. +1
    -1
      misc/htop/htoprc
  6. +1
    -0
      misc/keyboard
  7. +27
    -33
      scripts/dmenu-mconnect
  8. +5
    -1
      scripts/lock
  9. +6
    -3
      scripts/status-bar/battery
  10. +8
    -0
      scripts/status-bar/date
  11. +9
    -8
      suckless/dwm/keybind.h
  12. +4
    -2
      suckless/dwm/rules.h
  13. +1
    -0
      suckless/dwmblocks/config.h
  14. +4
    -1
      xorg/xinitrc
  15. +1
    -0
      zsh/aliases

+ 8
- 1
arch-setup/AUR.txt View File

@ -6,6 +6,7 @@ betterdiscordctl-git
betterlockscreen betterlockscreen
bitwarden bitwarden
bitwarden-cli bitwarden-cli
brave-bin
canto-next-git canto-next-git
capt-src capt-src
checkupdates+aur checkupdates+aur
@ -27,7 +28,8 @@ ifuse
jetbrains-toolbox jetbrains-toolbox
ly ly
mailspring mailspring
mconnect-git
mpris-ctl
mpv-mpris-git
mutt-wizard mutt-wizard
ncpamixer ncpamixer
nerd-fonts-hack nerd-fonts-hack
@ -46,13 +48,16 @@ postman-bin
python-click-spinner python-click-spinner
python-delorean python-delorean
qt5-styleplugins qt5-styleplugins
ranger-git
readability-cli readability-cli
renpy-sdk
rofi-bluetooth-git rofi-bluetooth-git
ruby-erubis ruby-erubis
ruby-xdg ruby-xdg
spicetify-cli spicetify-cli
spotify spotify
spotify-tui spotify-tui
spotifyd-full-git
sselp sselp
sublime-text-3 sublime-text-3
surf surf
@ -62,10 +67,12 @@ termpdf-git
ttf-material-design-icons ttf-material-design-icons
ttf-symbola ttf-symbola
typora typora
vtop
vue-cli vue-cli
wallabag-client wallabag-client
wd719x-firmware wd719x-firmware
whatsapp-nativefier-dark whatsapp-nativefier-dark
xbanish-timeout-git
xchat-se xchat-se
xmenu xmenu
yaft yaft


+ 75
- 3
arch-setup/nonAUR.txt View File

@ -29,6 +29,7 @@ attr
audit audit
autoconf autoconf
autoconf-archive autoconf-archive
autoconf2.13
automake automake
avahi avahi
baobab baobab
@ -65,8 +66,10 @@ cantarell-fonts
canto-curses canto-curses
capnproto capnproto
capstone capstone
cbindgen
cblas cblas
cdparanoia cdparanoia
cheese
chmlib chmlib
chromaprint chromaprint
chrony chrony
@ -74,12 +77,17 @@ cinnamon-desktop
clang clang
clipnotify clipnotify
clucene clucene
clutter
clutter-gst
clutter-gtk
cmake cmake
code code
cogl
colord colord
compiler-rt compiler-rt
conky conky
coreutils coreutils
cpupower
cracklib cracklib
cronie cronie
cryptsetup cryptsetup
@ -93,6 +101,7 @@ dav1d
db db
dbus dbus
dbus-glib dbus-glib
dbus-python
dconf dconf
dejagnu dejagnu
desktop-file-utils desktop-file-utils
@ -117,6 +126,7 @@ electron
electron6 electron6
elfutils elfutils
enchant enchant
engrampa
exempi exempi
exfat-utils exfat-utils
exiv2 exiv2
@ -135,16 +145,19 @@ filesystem
findutils findutils
firefox-developer-edition firefox-developer-edition
flac flac
fltk
fluidsynth fluidsynth
fontconfig fontconfig
fontforge fontforge
foremost foremost
freetype2 freetype2
frei0r-plugins
fribidi fribidi
fuse-common fuse-common
fuse2 fuse2
fuse3 fuse3
fzf fzf
gavl
gawk gawk
gc gc
gcc gcc
@ -152,6 +165,8 @@ gcc-libs
gconf gconf
gcr gcr
gd gd
gdb
gdb-common
gdbm gdbm
gdk-pixbuf-xlib gdk-pixbuf-xlib
gdk-pixbuf2 gdk-pixbuf2
@ -190,6 +205,7 @@ gnome-session
gnome-settings-daemon gnome-settings-daemon
gnome-shell gnome-shell
gnome-themes-extra gnome-themes-extra
gnome-video-effects
gnu-free-fonts gnu-free-fonts
gnupg gnupg
gnuplot gnuplot
@ -364,6 +380,7 @@ haskell-xml-conduit
haskell-xml-types haskell-xml-types
haskell-zip-archive haskell-zip-archive
haskell-zlib haskell-zlib
hdf5
hexchat hexchat
hicolor-icon-theme hicolor-icon-theme
hidapi hidapi
@ -374,10 +391,12 @@ hunspell
hwids hwids
hwloc hwloc
hyphen hyphen
i7z
iana-etc iana-etc
icu icu
ijs ijs
imagemagick imagemagick
imake
imlib2 imlib2
inetutils inetutils
inkscape inkscape
@ -445,6 +464,7 @@ lib32-xz
lib32-zlib lib32-zlib
lib32-zstd lib32-zstd
libabw libabw
libaec
libaio libaio
libarchive libarchive
libass libass
@ -749,6 +769,7 @@ mkinitcpio-busybox
mlocate mlocate
mobile-broadband-provider-info mobile-broadband-provider-info
mono mono
mozilla-common
mpfr mpfr
mpg123 mpg123
mpv mpv
@ -758,7 +779,9 @@ mtdev
mujs mujs
mutter mutter
mysql-workbench mysql-workbench
nasm
ncurses ncurses
ncurses5-compat-libs
ndctl ndctl
nemo nemo
neofetch neofetch
@ -789,6 +812,7 @@ nuspell
oniguruma oniguruma
openal openal
opencore-amr opencore-amr
opencv
openexr openexr
openjpeg2 openjpeg2
openmpi openmpi
@ -908,8 +932,6 @@ python-cryptography
python-css-parser python-css-parser
python-cssselect python-cssselect
python-dateutil python-dateutil
python-dbus
python-dbus-common
python-decorator python-decorator
python-defusedxml python-defusedxml
python-distlib python-distlib
@ -1055,7 +1077,47 @@ python-yaml
python-zeroconf python-zeroconf
python-zipp python-zipp
python2 python2
python2-appdirs
python2-asn1crypto
python2-backports
python2-cachecontrol
python2-cffi
python2-chardet
python2-colorama
python2-configparser
python2-contextlib2
python2-cryptography
python2-distlib
python2-distro
python2-docutils python2-docutils
python2-enum34
python2-future
python2-html5lib
python2-idna
python2-importlib-metadata
python2-ipaddress
python2-msgpack
python2-ordered-set
python2-packaging
python2-pathlib2
python2-pep517
python2-pip
python2-progress
python2-psutil
python2-pycparser
python2-pygame-sdl2
python2-pyopenssl
python2-pyparsing
python2-requests
python2-resolvelib
python2-retrying
python2-scandir
python2-setuptools
python2-six
python2-toml
python2-urllib3
python2-webencodings
python2-zipp
qpdf qpdf
qt5-base qt5-base
qt5-declarative qt5-declarative
@ -1073,7 +1135,6 @@ qt5-x11extras
qt5ct qt5ct
qtkeychain-qt5 qtkeychain-qt5
radare2 radare2
ranger
rapidjson rapidjson
raptor raptor
rasqal rasqal
@ -1084,6 +1145,7 @@ readline
redis redis
redland redland
refind refind
renpy
rest rest
rhash rhash
ripgrep ripgrep
@ -1108,9 +1170,13 @@ run-parts
rust rust
sbc sbc
sbsigntools sbsigntools
scdoc
scrot scrot
sdl sdl
sdl2 sdl2
sdl2_image
sdl2_mixer
sdl2_ttf
seahorse seahorse
sed sed
semver semver
@ -1125,6 +1191,7 @@ sonic-visualiser
sord sord
sound-theme-freedesktop sound-theme-freedesktop
soundtouch soundtouch
source-highlight
spandsp spandsp
speex speex
speexdsp speexdsp
@ -1150,6 +1217,7 @@ t1lib
taglib taglib
talloc talloc
tar tar
tbb
tcl tcl
tcsh tcsh
tdb tdb
@ -1169,6 +1237,7 @@ texlive-pictures
texlive-pstricks texlive-pstricks
texlive-publishers texlive-publishers
texlive-science texlive-science
thermald
thin-provisioning-tools thin-provisioning-tools
thunar thunar
thunderbird thunderbird
@ -1188,12 +1257,14 @@ ttf-joypixels
ttf-liberation ttf-liberation
ttf-linux-libertine ttf-linux-libertine
ttf-opensans ttf-opensans
turbostat
twine twine
twolame twolame
tzdata tzdata
uchardet uchardet
udisks2 udisks2
ueberzug ueberzug
unclutter
unibilium unibilium
unixodbc unixodbc
unrar unrar
@ -1328,6 +1399,7 @@ zbar
zenity zenity
zeromq zeromq
zimg zimg
zip
zita-alsa-pcmi zita-alsa-pcmi
zita-resampler zita-resampler
zlib zlib


+ 5
- 0
install.sh View File

@ -168,3 +168,8 @@ ninja
sudo ninja install sudo ninja install
cd $prev cd $prev
# Installl simcrop
git clone https://github.com/theFr1nge/simcrop.git /tmp/simcrop
cd /tmp/simcrop
sudo make install
cd $prev

+ 2
- 1
mail/mutt/mailcap View File

@ -1,6 +1,7 @@
text/plain; $EDITOR %s ; text/plain; $EDITOR %s ;
text/html; openfile %s ; nametemplate=%s.html text/html; openfile %s ; nametemplate=%s.html
text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
#text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
text/html; firefox-developer-edition %s;
image/*; openfile %s ; image/*; openfile %s ;
video/*; setsid mpv --quiet %s &; copiousoutput video/*; setsid mpv --quiet %s &; copiousoutput
audio/*; mpv %s ; audio/*; mpv %s ;


+ 1
- 1
misc/htop/htoprc View File

@ -1,7 +1,7 @@
# Beware! This file is rewritten by htop when settings are changed in the interface. # Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly. # The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1 fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_key=47
sort_direction=1 sort_direction=1
tree_sort_key=47 tree_sort_key=47
tree_sort_direction=1 tree_sort_direction=1


+ 1
- 0
misc/keyboard View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
setxkbmap us -variant altgr-intl -option caps:escape # Set keyboard layout. map CapsLock to Esc setxkbmap us -variant altgr-intl -option caps:escape # Set keyboard layout. map CapsLock to Esc
xset r rate 120 40
xmodmap -e "clear control" -e "add control = Control_L" -e "clear mod3" -e "add mod3 = Control_R" # Map right Ctrl to Mod3Mask xmodmap -e "clear control" -e "add control = Control_L" -e "clear mod3" -e "add mod3 = Control_R" # Map right Ctrl to Mod3Mask

+ 27
- 33
scripts/dmenu-mconnect View File

@ -25,7 +25,7 @@
# nnn # nnn
# zenity # zenity
# ranger # ranger
Picker='zenity'
Picker='ranger'
# Color Settings of dmenu # Color Settings of dmenu
COLOR_DISCONNECTED='#000' # Device Disconnected COLOR_DISCONNECTED='#000' # Device Disconnected
@ -63,7 +63,7 @@ show_devices (){
icon=$(get_icon $battery $devicetype) icon=$(get_icon $battery $devicetype)
# colors="$(get_colors $battery)" # colors="$(get_colors $battery)"
# echo "$colors" # echo "$colors"
show_menu "$devicename | $battery $icon" $deviceid $battery
show_menu "$devicename | $battery $icon" $deviceobj $battery
devices+="$devicename $battery $icon $SEPERATOR" devices+="$devicename $battery $icon $SEPERATOR"
elif [ "$isreach" = "false" ] && [ "$istrust" = "true" ];then elif [ "$isreach" = "false" ] && [ "$istrust" = "true" ];then
#nothing is found #nothing is found
@ -71,7 +71,7 @@ show_devices (){
else else
#found but not yet paired #found but not yet paired
icon=$(get_icon -2 $devicetype) icon=$(get_icon -2 $devicetype)
show_pmenu $devicename $deviceid
show_pmenu $devicename $deviceobj
devices+="$devicename $icon $SEPERATOR" devices+="$devicename $icon $SEPERATOR"
fi fi
done done
@ -91,51 +91,45 @@ SendKeys(){
#displays a menu for the connected device #displays a menu for the connected device
show_menu () { show_menu () {
optionNum=5 optionNum=5
options=$(printf "Send SMS\\nSend File\\nFind Device\\nPing\\nUnpair\\nkeys\\n")
options+=$(printf "\\nRefresh\\n")
options=$(printf "Send SMS\\nSend File\\nSend Text\\nSend URL\\nDisconnect\\n")
menu=$(echo $options | dmenu -i -p $1 -l $optionNum ) menu=$(echo $options | dmenu -i -p $1 -l $optionNum )
case "$menu" in case "$menu" in
*'Send File') *'Send File')
[ $Picker == 'nnn' ] && kdeconnect-cli --share "file://$($TERMINAL nnn -p -)" -d $2 ;
[ $Picker == 'zenity' ] && kdeconnect-cli --share "file://$(zenity --file-selection)" -d $2 ;
if [ $Picker == 'ranger' ]; then if [ $Picker == 'ranger' ]; then
mkdir -p /tmp/ranger/ && touch /tmp/ranger/sentfile
kdeconnect-cli --share "file://$($TERMINAL ranger --choosefile=/tmp/ranger/sentfile)" -d $2
mkdir -p /tmp/ranger/
rm -rf /tmp/ranger/sentfile
st -c ranger -e ranger --choosefile=/tmp/ranger/sentfile
if [ -f /tmp/ranger/sentfile ]; then
mconnectctl share-file "$2" "$(cat /tmp/ranger/sentfile)"
fi
fi;; fi;;
*'Unpair' ) kdeconnect-cli --unpair -d $2 ;;
*'Send SMS' ) *'Send SMS' )
message=$(echo 'OTW' | dmenu -i -p "Msg to send") message=$(echo 'OTW' | dmenu -i -p "Msg to send")
recipient=$(echo '14039199518' | dmenu -i -p "Recipient's phone #") recipient=$(echo '14039199518' | dmenu -i -p "Recipient's phone #")
kdeconnect-cli --send-sms "$message" --destination "$recipient" -d $2 ;;
*'Refresh' )
kdeconnect-cli --refresh;;
*'Notification' )
Notification_menu $notification1 $2;;
*'keys' )
SendKeys "$2";;
esac
mconnectctl send-sms "$2" "$message" "$recipient" ;;
*'Send URL' )
message=$(echo 'Clipboard' | dmenu -i -p "Enter Url:")
if [ "$message" = "Clipboard" ]; then
message=$(sselp)
fi
mconnectctl share-url "$2" "$message";;
*'Send Text' )
message=$(echo 'Clipboard' | dmenu -i -p "Enter Url:")
if [ "$message" = "Clipboard" ]; then
message=$(sselp)
fi
mconnectctl share-text "$2" "$message";;
*'Disconnect' )
mconnectctl disallow-device "$2"
esac
} }
show_pmenu () { show_pmenu () {
menu="$(printf "Pair Device" | dmenu -i -p "$1" )" menu="$(printf "Pair Device" | dmenu -i -p "$1" )"
case "$menu" in case "$menu" in
*'Pair Device') kdeconnect-cli --pair -d $2 ;;
*'Pair Device') mconnectctl allow-device $2 ;;
esac esac
} }
#still a work in progress
# get_colors () {
# case $1 in
# "-1") colors="-nb \"$COLOR_DISCONNECTED\" -nf \"#000\" " ;;
# "-2") colors="-nb \"$COLOR_NEWDEVICE\" -nf \"#000\" ";;
# 5*) colors="-nb \"$COLOR_BATTERY_50\" -nf \"#000\" ";;
# 6*) colors="-nb \"$COLOR_BATTERY_60\" -nf \"#000\" ";;
# 7*) colors="-nb \"$COLOR_BATTERY_70\" -nf \"#000\" ";;
# 8*) colors="-nb \"$COLOR_BATTERY_80\" -nf \"#000\" ";;
# *) colors="-nb \"$COLOR_BATTERY_LOW\" -nf \"#000\" ";;
# 9*|100) colors="-nb \"$COLOR_BATTERY_90\" -nf \"#000\" ";;
# esac
# echo $colors
# }
get_icon () { get_icon () {
if [ "$2" = "tablet" ] if [ "$2" = "tablet" ]


+ 5
- 1
scripts/lock View File

@ -1,2 +1,6 @@
#!/bin/bash #!/bin/bash
/home/yigit/.scripts/pacontrol.sh open-mute && /home/yigit/.scripts/dunst_toggle.sh -s && betterlockscreen -l -t 'Stay the fuck out!' && /home/yigit/.scripts/dunst_toggle.sh -e && /home/yigit/.scripts/pacontrol.sh toggle-mute
/home/yigit/.scripts/pacontrol.sh open-mute
/home/yigit/.scripts/dunst_toggle.sh -s
betterlockscreen -l -t 'Stay the fuck out!'
/home/yigit/.scripts/dunst_toggle.sh -e
/home/yigit/.scripts/pacontrol.sh toggle-mute

+ 6
- 3
scripts/status-bar/battery View File

@ -12,13 +12,16 @@ ramp70=
ramp80= ramp80=
ramp90= ramp90=
ramp100= ramp100=
ac=ﮣ
if [ "$NO_BAT" = true ] ; then if [ "$NO_BAT" = true ] ; then
echo "^c#ebcb8b^^d^ "
echo "^c#ebcb8b^$ac^d^ "
else else
export bat=$(cat /sys/class/power_supply/BAT0/capacity) export bat=$(cat /sys/class/power_supply/BAT0/capacity)
export status=$(cat /sys/class/power_supply/BAT0/status) export status=$(cat /sys/class/power_supply/BAT0/status)
if [[ $bat -lt 10 ]]; then
export plugged=$(cat /sys/class/power_supply/AC/online)
if [[ $plugged == "1" ]]; then
echo "^c#ebcb8b^$ac^d^"
elif [[ $bat -lt 10 ]]; then
echo "^c#ebcb8b^$ramp10^d^ $bat% " echo "^c#ebcb8b^$ramp10^d^ $bat% "
elif [[ $bat -lt 20 ]]; then elif [[ $bat -lt 20 ]]; then
echo "^c#ebcb8b^$ramp20^d^ $bat% " echo "^c#ebcb8b^$ramp20^d^ $bat% "


+ 8
- 0
scripts/status-bar/date View File

@ -0,0 +1,8 @@
#! /bin/sh
icon=
cmd=$(date +"%h %e")
#echo "$ifg $icon $tfg$cmd"
echo -n "^c#0f111a^^b#88c0d0^ $icon $cmd ^d^"

+ 9
- 8
suckless/dwm/keybind.h View File

@ -28,6 +28,10 @@ static const char *prev[] = {"/usr/bin/playerctl","previous",NULL};
static const char *next[] = {"/usr/bin/playerctl","next",NULL}; static const char *next[] = {"/usr/bin/playerctl","next",NULL};
static const char *outmenu[] = {"/home/yigit/.scripts/dmenu-logout"}; static const char *outmenu[] = {"/home/yigit/.scripts/dmenu-logout"};
static const char *screenshot[] = { "scrot", "/tmp/%Y-%m-%d-%s_$wx$h.png", "-e","xclip -selection clipboard -target image/png -i $f; cp $f ~/Pictures/Screenshots;notify-send \"SNAP\" \"$f\"", NULL };
static const char *windowshot[] = { "scrot", "-u", "/tmp/%Y-%m-%d-%s_$wx$h.png", "-e","xclip -selection clipboard -target image/png -i $f; cp $f ~/Pictures/Screenshots;notify-send \"SNAP\" \"$f\"", NULL };
static const char *simcrop[] = {"simcrop","-fc","-sc",NULL};
static const char *notification_off[] = {"/home/yigit/.scripts/dunst_toggle.sh","-s",NULL}; static const char *notification_off[] = {"/home/yigit/.scripts/dunst_toggle.sh","-s",NULL};
static const char *notification_on[] = {"/home/yigit/.scripts/dunst_toggle.sh", "-e",NULL}; static const char *notification_on[] = {"/home/yigit/.scripts/dunst_toggle.sh", "-e",NULL};
@ -40,15 +44,10 @@ static const char *bwmenu[] = {"/home/yigit/.scripts/password_manager", NULL};
static const char *network_manager[] = {"/home/yigit/.scripts/networkmanager_dmenu"}; static const char *network_manager[] = {"/home/yigit/.scripts/networkmanager_dmenu"};
static const char *mconnect[] = {"/home/yigit/.scripts/dmenu-mconnect"};
static const char *genpwd[] = {"sh", "-c","/sbin/bw generate | xclip" };
static const char *trackpad[] = {"/home/yigit/.scripts/toggle_touchpad.sh"}; static const char *trackpad[] = {"/home/yigit/.scripts/toggle_touchpad.sh"};
static const char *kdeconnect[] = {"/home/yigit/.local/bin/dmenu_kdeconnect.sh", NULL};
static const char *bluetooth[] = {"/home/yigit/.scripts/dmenu-bluetooth", NULL}; static const char *bluetooth[] = {"/home/yigit/.scripts/dmenu-bluetooth", NULL};
static const char *screenshot[] = { "scrot","-d","3", "%Y-%m-%d-%s_$wx$h.jpg", "-e","xclip -selection clipboard -t image/jpg < $f; mv $f ~/Pictures/Screenshots/;dunstify --icon='/home/yigit/.icons/Numix-Circle/48/apps/camera.svg' -a 'SNAP' 'Screenshot taken'", NULL }; static const char *windowshot[] = { "scrot", "-u", "-d","3", "%Y-%m-%d-%s_$wx$h.jpg", "-e","xclip -selection clipboard -t image/jpg < $f; mv $f ~/Pictures/Screenshots/;dunstify --icon='/home/yigit/.icons/Numix-Circle/48/apps/camera.svg' -a 'SNAP' 'Screenshot taken'", NULL };
static const char *url[] = {"/home/yigit/.scripts/dmenu_surf", NULL}; static const char *url[] = {"/home/yigit/.scripts/dmenu_surf", NULL};
static const char *surf[] = {"/home/yigit/.scripts/tabbed_surf", NULL}; static const char *surf[] = {"/home/yigit/.scripts/tabbed_surf", NULL};
static const char *google[] = {"/home/yigit/.scripts/menu-surfraw", "google", NULL}; static const char *google[] = {"/home/yigit/.scripts/menu-surfraw", "google", NULL};
@ -108,7 +107,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_t, spawn, {.v = trackpad} }, { MODKEY|ShiftMask, XK_t, spawn, {.v = trackpad} },
{ MODKEY, XK_x, spawn, {.v = lock } }, { MODKEY, XK_x, spawn, {.v = lock } },
{ MODKEY, XK_c, spawn, {.v = clipmenu } }, { MODKEY, XK_c, spawn, {.v = clipmenu } },
{ MODKEY|ShiftMask, XK_p, spawn, {.v = kdeconnect } },
{ MODKEY|ShiftMask, XK_p, spawn, {.v = genpwd} },
{ MODKEY|ShiftMask, XK_b, spawn, {.v = bluetooth } }, { MODKEY|ShiftMask, XK_b, spawn, {.v = bluetooth } },
{ MODKEY|Mod1Mask, XK_n, spawn, {.v = network_manager} }, /*Spiral*/ { MODKEY|Mod1Mask, XK_n, spawn, {.v = network_manager} }, /*Spiral*/
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
@ -121,9 +120,11 @@ static Key keys[] = {
{ 0, XF86XK_AudioNext, spawn, {.v = next } }, { 0, XF86XK_AudioNext, spawn, {.v = next } },
{ 0, XK_Print, spawn, {.v = screenshot } }, { 0, XK_Print, spawn, {.v = screenshot } },
{ MODKEY, XK_Print, spawn, {.v = windowshot } }, { MODKEY, XK_Print, spawn, {.v = windowshot } },
{ MODKEY|ShiftMask, XK_e, spawn, {.v = simcrop } },
{ MODKEY, XK_u, spawn, {.v = url} }, { MODKEY, XK_u, spawn, {.v = url} },
{ MODKEY, XK_g, spawn, {.v = google} }, { MODKEY, XK_g, spawn, {.v = google} },
{ MODKEY|ShiftMask, XK_c, spawn, {.v = online_class} }, { MODKEY|ShiftMask, XK_c, spawn, {.v = online_class} },
{ MODKEY|ShiftMask, XK_m, spawn, {.v = mconnect} },
{ MODKEY, XK_y, spawn, {.v = youtube} }, { MODKEY, XK_y, spawn, {.v = youtube} },
{ MODKEY, XK_s, togglescratch, {.ui = 0 } }, { MODKEY, XK_s, togglescratch, {.ui = 0 } },
{ MODKEY|ShiftMask, XK_s, togglescratch, {.ui = 1 } }, { MODKEY|ShiftMask, XK_s, togglescratch, {.ui = 1 } },


+ 4
- 2
suckless/dwm/rules.h View File

@ -26,11 +26,13 @@ static const Rule rules[] = {
RULE(.instance = "spterm", .tags = SPTAG(0), .isfloating = 1) RULE(.instance = "spterm", .tags = SPTAG(0), .isfloating = 1)
RULE(.class = "spfeh", .tags = SPTAG(1), .isfloating = 1) RULE(.class = "spfeh", .tags = SPTAG(1), .isfloating = 1)
RULE(.instance = "spmutt", .tags = SPTAG(2), .isfloating = 1) RULE(.instance = "spmutt", .tags = SPTAG(2), .isfloating = 1)
RULE(.class = "ranger", 0, .isfloating = 1)
RULE(.class = "ranger", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H")
RULE(.class = "vim", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H") RULE(.class = "vim", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H")
RULE(.class = "stpulse", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H") RULE(.class = "stpulse", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H")
RULE(.class = "mpv", 0, .isfloating = 1, .floatpos="100% 1% 600W 350H") RULE(.class = "mpv", 0, .isfloating = 1, .floatpos="100% 1% 600W 350H")
RULE(.instance = "sxiv", 0, .isfloating = 1, .floatpos="100% 1% 600W 350H") RULE(.instance = "sxiv", 0, .isfloating = 1, .floatpos="100% 1% 600W 350H")
RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 1000W 700H") RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 1000W 700H")
RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 250W 600H")
RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 250W 600H") // Why did I put this here?
// RULE(.title = "SimCrop", 0, .isfloating = 1, .floatpos="50% 50% 800W 500H")
}; };

+ 1
- 0
suckless/dwmblocks/config.h View File

@ -13,6 +13,7 @@ static Block blocks[] = {
{ "", PATH("network"), 120, 13}, { "", PATH("network"), 120, 13},
{ "", PATH("battery"), 60, 12}, { "", PATH("battery"), 60, 12},
{ "", PATH("time"), 30, 11}, { "", PATH("time"), 30, 11},
{ "", PATH("date"), 240, 22},
}; };
//Sets delimiter between status commands. NULL character ('\0') means no delimiter. //Sets delimiter between status commands. NULL character ('\0') means no delimiter.


+ 4
- 1
xorg/xinitrc View File

@ -60,7 +60,10 @@ firefox-developer-edition app.daily.dev&
bitwarden-desktop & bitwarden-desktop &
curl 'http://yeetclock/setcolor?R=136&G=192&B=208' & curl 'http://yeetclock/setcolor?R=136&G=192&B=208' &
~/.keyboard ~/.keyboard
#thunderbird &
xbanish -t 2000 -s &
pactl upload-sample /usr/share/sounds/freedesktop/stereo/bell.oga x11-bell
pactl load-module module-x11-bell sample=x11-bell display=$DISPLAY
dunst & dunst &


+ 1
- 0
zsh/aliases View File

@ -13,6 +13,7 @@ alias tn="TERM=screen-256color-bce tmux new -s "
alias tat="TERM=screen-256color-bce tmux a -t " alias tat="TERM=screen-256color-bce tmux a -t "
alias yain="yay -Syu " alias yain="yay -Syu "
alias ls="ls --color" alias ls="ls --color"
alias yay="yay --sudoloop"
# Suffix aliases # Suffix aliases
alias -g G=" | rg" alias -g G=" | rg"


Loading…
Cancel
Save