Kaynağa Gözat

update some older dotfile changes

Noah Vogt 2 yıl önce
ebeveyn
işleme
afa17373f0

+ 1 - 0
.gitignore

@@ -2,5 +2,6 @@
 dot-config/norisa.local
 dot-config/newsboat/urls
 dot-config/Xauth/auth
+dot-config/mpv/watch_later/
 local-share/gnupg/
 error.log

+ 1 - 0
dot-config/aliasrc

@@ -67,6 +67,7 @@ alias gsetkey="git config --add --local core.sshCommand \'ssh -i \$GIT_SSH_KEY\'
 alias clone="git clone -c core.sshCommand='/usr/bin/ssh -i \$GIT_SSH_KEY'"
 alias gs='git status'
 alias gd='git diff'
+alias gr='git remote -v'
 alias add='git add'
 alias commit='git commit'
 alias fetch='git fetch'

+ 2 - 0
dot-config/mpv/mpv.conf

@@ -0,0 +1,2 @@
+hwdec=auto
+fs=yes

+ 6 - 2
dot-config/nvim/coc-settings.json

@@ -5,7 +5,7 @@
    "coc.preferences.enableMessageDialog": true,
    "python.formatting.provider": "black",
    "python.formatting.blackPath": "/usr/bin/black",
-   "coc.preferences.formatOnSaveFiletypes": ["python", "java"],
+   "coc.preferences.formatOnSaveFiletypes": ["python", "java", "verilog"],
 
 
   "diagnostic-languageserver.filetypes": {
@@ -17,6 +17,10 @@
   },
   "python.linting.pylintEnabled": true,
   "languageserver": {
+    "veridian": {
+      "command": "veridian",
+      "filetypes": ["systemverilog", "verilog"]
+    },
     "ccls": {
       "command": "ccls",
       "filetypes": [
@@ -45,7 +49,7 @@
   // "java.jdt.ls.vmargs": "-javaagent:/usr/local/share/lombok/lombok.jar",
   "snippets.userSnippetsDirectory": "~/.config/nvim/snips",
   "suggest.noselect": true,
-  "java.format.settings.url": "/home/based/.config/coc/extensions/node_modules/redhat.java/eclipse-formatter.xml",
+  "java.format.settings.url": "/home/based/.config/coc/extensions/node_modules/redhat.java/",
   "coc.source.vimtex.filetypes": [
     "tex",
     "plaintex"

+ 4 - 4
local-bin/battery

@@ -12,9 +12,9 @@
 #fi
 #batterypercent=$(echo "$BATTERYSTATE" | tr -d 'Ch' | sed 's/cargng:/?/')
 
-percent="$(cat /sys/class/power_supply/BAT0/capacity)"
+percent="$(cat /sys/class/power_supply/BAT*/capacity)"
 
-if grep -q 'Discharging' /sys/class/power_supply/BAT0/status; then
+if grep -q 'Discharging' /sys/class/power_supply/BAT*/status; then
     if [ "$percent" -gt 89 ]; then
         icon=" "
     elif [ "$percent" -gt 74 ]; then
@@ -26,12 +26,12 @@ if grep -q 'Discharging' /sys/class/power_supply/BAT0/status; then
     else
         icon=" "
     fi
-elif grep -q 'Charging' /sys/class/power_supply/BAT0/status; then
+elif grep -q 'Charging' /sys/class/power_supply/BAT*/status; then
     icon=" "
     if [ "$percent" -eq 100 ]; then
         percent="99"
     fi
-elif grep -q 'Full' /sys/class/power_supply/BAT0/status; then
+elif grep -q 'Full' /sys/class/power_supply/BAT*/status; then
     icon=" "
 else
     icon=" "

+ 4 - 4
local-bin/gkg-connect

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# script to connect to weird wifis
+# script to connect to weird educational wifis
 
 # make sure that script is run with root privileges
 [ $EUID -ne 0 ] && { echo -e "\e[0;30;101m Error: Please run this script with root privileges \e[0m"; exit; }
@@ -10,13 +10,13 @@ echo -e "\e[0;30;42m List of Wifi interfaces (iwconfig): \e[0m\n"
 iwconfig
 
 # get user input
-echo -e "\e[0;30;46m Select Wifi Interface: \e[0m" 
+echo -e "\e[0;30;46m Select Wifi Interface: \e[0m"
 read -rp " >>> " interface
 
-echo -e "\n\e[0;30;46m Username: \e[0m" 
+echo -e "\n\e[0;30;46m Username: \e[0m"
 read -rp " >>> " username
 
-echo -e "\n\e[0;30;46m Password: \e[0m" 
+echo -e "\n\e[0;30;46m Password: \e[0m"
 echo -n " >>> "
 read -rs password
 printf "\n"