This commit is contained in:
cho 2023-07-10 18:33:55 +07:00
parent b8a16186ab
commit 2b89338c64
12 changed files with 91 additions and 37 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ home/default/.config/mpd/mpd.state
home/default/.config/gtk-3.0/bookmarks
home/default/.config/zsh/.zcompdump
home/default/.local/bin/start-tasks
home/default/.config/newsboat/urls

View File

@ -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)

View File

@ -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 \

View File

@ -0,0 +1,3 @@
#!/bin/sh
alias nulled-cho="ssh cho@209.34.206.25 -p 7022"

View File

@ -69,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
@ -160,7 +160,7 @@ 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/agenda.org
bindsym $mod+F6 exec em ~/notebook/ag/todo.org
# browser
bindsym $mod+w exec $browser

View File

@ -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",

View File

@ -7,11 +7,36 @@
min-height: 0;
}
#workspaces {
margin: 0 4px;
}
#workspaces button {
background-color: #6B313D;
color: #bbbbbb;
padding: 0 8px;
min-width: 0;
}
#workspaces button.persistent {
background-color: #000000;
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;
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
/*transition-property: background-color;*/
/*transition-duration: .5s;*/
}
window#waybar.hidden {
@ -36,27 +61,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 +95,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 +137,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 {

View File

@ -0,0 +1 @@
hsts-file=~/.cache/wget-hsts

View File

@ -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:

View File

@ -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" | rofi -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 $#'

View File

@ -27,9 +27,16 @@ git clone https://gitea.bubbletea.dev/cho/dotfiles ~/.dots
cp -rv ~/.dots/home/default/.* ~/
# or using stow
# make sure you make directories you don't want as symlinks
cd ~/.dots/home/ && stow default --target=$HOME/
#+END_SRC
*** how to unstow dotfiles
#+BEGIN_SRC sh
cd ~/.dots/home/ && stow -D default --target=$HOME/
#+END_SRC
** rpmfusion
from https://rpmfusion.org/Configuration and https://rpmfusion.org/Howto/Multimedia
@ -199,6 +206,12 @@ pip install --user keepmenu
pip install --user pulsemixer
#+END_SRC
*** termdown (terminal timer/stopwatch)
#+BEGIN_SRC sh
pip install termdown
#+END_SRC
** go packages
*** pup
@ -253,6 +266,18 @@ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flat
#+END_SRC
** flatpak packages
*** Unity
#+BEGIN_SRC sh
flatpak install flathub com.unity.UnityHub
#+END_SRC
*** Foliate (Epub reader)
#+BEGIN_SRC sh
flatpak install com.github.johnfactotum.Foliate
#+END_SRC
*** bottles and dependencies
- gamescope
@ -287,6 +312,12 @@ sudo su
printf '* hard memlock unlimited\n* soft memlock unlimited' >> /etc/security/limits.conf
#+END_SRC
*** cemu
#+BEGIN_SRC sh
flatpak install flathub info.cemu.Cemu
#+END_SRC
** installing cargo
https://doc.rust-lang.org/cargo/getting-started/installation.html

View File

@ -93,7 +93,7 @@ grimshot
mumble
dino
gammastep
sqlite3
sqlite
gnome-themes-extra
adwaita-qt5
adwaita-qt6
@ -122,3 +122,5 @@ vulkan-validation-layers
xorg-x11-drv-amdgpu
amd-gpu-firmware
emacs
tmux
gamescope