update
update update
This commit is contained in:
@ -34,6 +34,7 @@
|
||||
(setq doom-theme 'doom-tomorrow-night)
|
||||
;(setq doom-theme 'doom-one)
|
||||
;(setq doom-theme 'doom-wilmersdorf)
|
||||
;(setq doom-theme 'doom-plain-dark)
|
||||
|
||||
;(setq doom-theme 'doom-plain)
|
||||
;(setq doom-theme 'doom-flatwhite)
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
||||
|
||||
include "/home/default/.gtkrc-2.0.mine"
|
||||
gtk-theme-name="Adwaita-dark"
|
||||
gtk-icon-theme-name="hicolor"
|
||||
gtk-theme-name="Materia-dark"
|
||||
gtk-icon-theme-name="Papirus-Dark"
|
||||
gtk-font-name="Sans 10"
|
||||
gtk-cursor-theme-name="Adwaita"
|
||||
gtk-cursor-theme-size=0
|
||||
|
@ -13,3 +13,4 @@ gtk-enable-input-feedback-sounds=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintfull
|
||||
gtk-application-prefer-dark-theme=1
|
||||
|
@ -126,5 +126,7 @@ map W $setsid -f $TERMINAL >/dev/null 2>&1
|
||||
|
||||
map Y $printf "%s" "$fx" | xclip -selection clipboard
|
||||
|
||||
map <c-f> $setsid -f thunar . ; kill @#
|
||||
|
||||
# Source Bookmarks
|
||||
source "~/.config/lf/shortcutrc"
|
||||
|
@ -26,7 +26,8 @@ color listnormal cyan default
|
||||
color listfocus black yellow standout bold
|
||||
color listnormal_unread blue default
|
||||
color listfocus_unread yellow default bold
|
||||
color info red black bold
|
||||
#color info red black bold
|
||||
color info red default
|
||||
color article white default bold
|
||||
|
||||
browser linkhandler
|
||||
|
34
home/default/.config/nsxiv/exec/key-handler
Executable file
34
home/default/.config/nsxiv/exec/key-handler
Executable file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
# todo: import to wayland
|
||||
while read -r file
|
||||
do
|
||||
case "$1" in
|
||||
"w") change-background "$file" & ;;
|
||||
"c")
|
||||
[ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | rofi -dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
|
||||
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
|
||||
cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." &
|
||||
;;
|
||||
"m")
|
||||
[ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | rofi -dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
|
||||
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
|
||||
mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." &
|
||||
;;
|
||||
"r")
|
||||
convert -rotate 90 "$file" "$file" ;;
|
||||
"R")
|
||||
convert -rotate -90 "$file" "$file" ;;
|
||||
"f")
|
||||
convert -flop "$file" "$file" ;;
|
||||
"y")
|
||||
printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard &&
|
||||
notify-send "$file copied to clipboard" & ;;
|
||||
"Y")
|
||||
readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&
|
||||
notify-send "$(readlink -f "$file") copied to clipboard" & ;;
|
||||
"d")
|
||||
[ "$(printf "No\\nYes" | rofi -dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
|
||||
"g") setsid -f gimp "$file" ;;
|
||||
"i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: <b>/;s/$/<\/b>/" | grep "<b>")" ;;
|
||||
esac
|
||||
done
|
@ -56,7 +56,8 @@ alias \
|
||||
ytvid="yt-dlp --embed-metadata --embed-thumbnail --embed-chapters --write-auto-subs -f bestvideo'[height<=1080]''[ext=mp4]'+bestaudio'[ext=m4a]'/best'[ext=mp4]'/best" \
|
||||
t="todo.sh -t -d $HOME/notebook/todo/todo.cfg" \
|
||||
fj="firejail --profile=$HOME/.config/firejail/game.profile" \
|
||||
dj="dijo"
|
||||
dj="dijo" \
|
||||
hgs="hugo server --noHTTPCache --disableFastRender"
|
||||
|
||||
# ytfzf
|
||||
alias \
|
||||
|
@ -1,5 +1,6 @@
|
||||
### sway settings
|
||||
|
||||
|
||||
# logo key. Use Mod1 for Alt.
|
||||
set $mod Mod4
|
||||
|
||||
@ -49,8 +50,8 @@ exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
# emacs daemon
|
||||
exec /usr/bin/emacs --daemon
|
||||
|
||||
#assign [app_id="librewolf"] 2
|
||||
#assign [app_id="firefox"] 2
|
||||
assign [app_id="librewolf"] 2
|
||||
assign [app_id="firefox"] 2
|
||||
assign [app_id="mumble"] 9
|
||||
assign [app_id="dino"] 9
|
||||
assign [app_id="deluge"] 10
|
||||
@ -68,8 +69,8 @@ show_marks yes
|
||||
|
||||
# looks
|
||||
font pango: monospace 8
|
||||
gaps inner 25
|
||||
#default_border pixel 2
|
||||
#gaps inner 25
|
||||
default_border pixel 2
|
||||
bindsym $mod+Control+y border toggle
|
||||
|
||||
set $cl_high #333333
|
||||
@ -83,6 +84,13 @@ client.focused_inactive $cl_back $cl_back $cl_fore $cl_back $cl_back
|
||||
client.unfocused $cl_back $cl_back $cl_fore $cl_back $cl_back
|
||||
client.urgent $cl_urge $cl_urge $cl_fore $cl_urge $cl_urge
|
||||
|
||||
set $gnome-schema org.gnome.desktop.interface
|
||||
exec_always {
|
||||
gsettings set $gnome-schema gtk-theme 'Materia-dark'
|
||||
gsettings set $gnome-schema icon-theme 'Papirus-Dark'
|
||||
gsettings set $gnome-schema color-scheme 'prefer-dark'
|
||||
}
|
||||
|
||||
### Idle configuration
|
||||
|
||||
# timeout
|
||||
@ -135,27 +143,30 @@ bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
|
||||
# screenshot
|
||||
bindsym Print exec grimshot save output $HOME/Pictures/Screenshots/$(date +'%Y-%m-%d_%H.%M.%S_%Z').png
|
||||
bindsym $mod+Print exec grimshot save active $HOME/Pictures/Screenshots/$(date +'%Y-%m-%d_%H.%M.%S_%Z').png
|
||||
bindsym $mod+Shift+Print exec grimshot save window $HOME/Pictures/Screenshots/$(date +'%Y-%m-%d_%H.%M.%S_%Z').png
|
||||
bindsym Print exec screenshot.sh output
|
||||
bindsym $mod+Print exec screenshot.sh active
|
||||
bindsym $mod+Shift+Print exec screenshot.sh window
|
||||
# alternative keybind
|
||||
bindsym $mod+Control+u exec grimshot save output $HOME/Pictures/Screenshots/$(date +'%Y-%m-%d_%H.%M.%S_%Z').png
|
||||
bindsym $mod+u exec grimshot save active $HOME/Pictures/Screenshots/$(date +'%Y-%m-%d_%H.%M.%S_%Z').png
|
||||
bindsym $mod+Shift+u exec grimshot save window $HOME/Pictures/Screenshots/$(date +'%Y-%m-%d_%H.%M.%S_%Z').png
|
||||
bindsym $mod+Control+u exec screenshot.sh output
|
||||
bindsym $mod+u exec screenshot.sh active
|
||||
bindsym $mod+Shift+u exec screenshot.sh window
|
||||
|
||||
|
||||
### programs
|
||||
|
||||
# sway config
|
||||
# files
|
||||
bindsym $mod+F1 exec em ~/.config/sway/config
|
||||
bindsym $mod+F2 exec em ~/.dotroot/packages.txt
|
||||
bindsym $mod+F3 exec em ~/.dotroot/instructions.org
|
||||
bindsym $mod+F4 exec em ~/notebook/studies/college.org
|
||||
bindsym $mod+F5 exec em ~/notebook/ag/habits.org
|
||||
bindsym $mod+F6 exec em ~/notebook/ag/todo.org
|
||||
|
||||
# browser
|
||||
bindsym $mod+w exec $browser
|
||||
|
||||
# agenda
|
||||
bindsym $mod+c exec emacsclient -c --eval '(org-agenda-list)' || emacs --eval '(org-agenda-list)'
|
||||
bindsym $mod+c exec emacsclient --eval '(org-agenda-list)' || emacs --eval '(org-agenda-list)'
|
||||
|
||||
# notebook
|
||||
bindsym $mod+n exec $term -e $editor ~/notebook/index.org
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
"position": "top", // Waybar position (top|bottom|left|right)
|
||||
"position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 20, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
// Choose the order of the modules
|
||||
@ -12,14 +12,26 @@
|
||||
},
|
||||
// Modules configuration
|
||||
"sway/workspaces": {
|
||||
"persistent_workspaces": {
|
||||
"1": ["HDMI-A-1"],
|
||||
"2": ["HDMI-A-1"],
|
||||
"3": ["HDMI-A-1"],
|
||||
"4": ["HDMI-A-1"],
|
||||
"5": ["HDMI-A-1"],
|
||||
"6": ["DVI-D-1"],
|
||||
"7": ["DVI-D-1"],
|
||||
"8": ["DVI-D-1"],
|
||||
"9": ["DVI-D-1"],
|
||||
"10": ["DVI-D-1"]
|
||||
},
|
||||
// "disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"all-outputs": false,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "1-em", // emacs
|
||||
"2": "2-se", // search/web
|
||||
"3": "3-tm", // terminal
|
||||
"4": "4",
|
||||
"4": "4-gm",
|
||||
"5": "5",
|
||||
"6": "6",
|
||||
"7": "7",
|
||||
|
@ -7,11 +7,40 @@
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
#workspaces button {
|
||||
/*background-color: #6B313D;*/
|
||||
/*color: #bbbbbb;*/
|
||||
background-color: #444444;
|
||||
color: #bbbbbb;
|
||||
padding: 0 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
#workspaces button.persistent {
|
||||
/*background-color: #000000;*/
|
||||
background-color: #222222;
|
||||
color: #bbbbbb;
|
||||
}
|
||||
#workspaces button.focused {
|
||||
color: #000000;
|
||||
background-color: #888888;
|
||||
}
|
||||
#workspaces button.visible {
|
||||
color: #000000;
|
||||
background-color: #888888;
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: #000;
|
||||
/*background-color: #000;*/
|
||||
background-color: #222222;
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
/*transition-property: background-color;*/
|
||||
/*transition-duration: .5s;*/
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
@ -36,27 +65,6 @@ window#waybar.chromium {
|
||||
border: none;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 8px;
|
||||
background-color: #6B313D;
|
||||
color: #bbbbbb;
|
||||
/* background-color: transparent;
|
||||
color: #ffffff;*/
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
/*colorful*/
|
||||
color: #000000;
|
||||
background-color: #888888;
|
||||
/*background-color: #424242;
|
||||
color: #ffffff;
|
||||
box-shadow: inset 2px 2px #555555, inset -2px -2px #555555;*/
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
@ -91,9 +99,6 @@ window#waybar.chromium {
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
@ -136,11 +141,11 @@ window#waybar.chromium {
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
/*animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
animation-direction: alternate;*/
|
||||
}
|
||||
|
||||
label:focus {
|
||||
|
1
home/default/.config/wget/wgetrc
Normal file
1
home/default/.config/wget/wgetrc
Normal file
@ -0,0 +1 @@
|
||||
hsts-file=~/.cache/wget-hsts
|
@ -17,6 +17,7 @@ HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history"
|
||||
# Load aliases and shortcuts if existent.
|
||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
|
||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc"
|
||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/privrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/privrc"
|
||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
|
||||
|
||||
# Basic auto/tab complete:
|
||||
|
@ -1,3 +0,0 @@
|
||||
[dotfiles]
|
||||
repository = ~/.dotfiles
|
||||
packages = ['.config', '.local/share/applications', '.local/bin']
|
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
setsid -f emacsclient --create-frame --alternate-editor='emacs' $@ >/dev/null 2>&1
|
||||
setsid -f emacsclient --alternate-editor='emacs' $@ >/dev/null 2>&1
|
||||
|
34
home/default/.local/bin/screenshot.sh
Executable file
34
home/default/.local/bin/screenshot.sh
Executable file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
[ -z "$1" ] && printf "Usage: screenshot.sh [output|active|window] \n" && exit 0
|
||||
|
||||
file=$HOME/Pictures/Screenshots/$(date +'%Y-%m-%d_%H.%M.%S_%Z').png
|
||||
|
||||
if [[ -n "$1" ]]; then
|
||||
case "$1" in
|
||||
output) grimshot save output $file
|
||||
break
|
||||
;;
|
||||
active) grimshot save active $file
|
||||
break
|
||||
;;
|
||||
window) grimshot save window $file
|
||||
break
|
||||
;;
|
||||
screen) grimshot save screen $file
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo $@ is not an argument
|
||||
break
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ -N $file ]]; then
|
||||
echo "screenshot saved."
|
||||
notify-send "screenshot saved." -i $file
|
||||
exit 0
|
||||
else
|
||||
echo "screenshot failed."
|
||||
exit 1
|
||||
fi
|
@ -7,7 +7,7 @@ case "$(readlink -f /sbin/init)" in
|
||||
*) ctl='loginctl' ;;
|
||||
esac
|
||||
|
||||
case "$(printf "🔒 lock\n🚪 leave $WM\n♻️ renew $WM\n🐻 hibernate\n🔃 reboot\n🖥️ shutdown\n💤 sleep\n📺 display off\n set background\n start idle\n kill swayidle\n fcitx5\n kill fcitx5\n start emacs daemon\n kill emacs daemon\n restart emacs daemon" | dmenu -i -l 16 -p 'Action: ')" in
|
||||
case "$(printf "🔒 lock\n🚪 leave $WM\n♻️ renew $WM\n🐻 hibernate\n🔃 reboot\n🖥️ shutdown\n💤 sleep\n📺 display off\n set background\n start idle\n kill swayidle\n fcitx5\n kill fcitx5\n start emacs daemon\n kill emacs daemon\n restart emacs daemon" | rofi -dmenu -i -l 16 -p 'action')" in
|
||||
'🔒 lock')
|
||||
setsid -f swaylock
|
||||
setsid -f sleep 2 && swayidle -w timeout 1 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on" && kill $#'
|
||||
|
4
home/default/.local/share/applications/whatsapp.desktop
Normal file
4
home/default/.local/share/applications/whatsapp.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Whatsapp
|
||||
Exec=/usr/bin/librewolf -P wa https://web.whatsapp.com
|
Reference in New Issue
Block a user