Compare commits

...

4 Commits

Author SHA1 Message Date
8edbaa5024 bspwm : polybar dual monitor 2024-04-08 20:40:30 +09:00
f558807896 emacs : follow symlinks / bspwm : selecting options using env 2024-04-05 10:04:32 +09:00
4a99c43304 remove unused scripts, 2024-04-05 09:53:49 +09:00
53e5aed015 bspwm - dual monitor config 2024-04-05 01:32:44 +09:00
15 changed files with 204 additions and 190 deletions

View File

@ -1,4 +1,9 @@
#!/usr/bin/env bash
if [[ $JUPCID == "HOME-DESKTOP" ]]; then
xrandr --output DP-4 --primary --mode 2560x1440 --rotate normal --output HDMI-0 --rotate right --right-of DP-4
fi
killall bspc
##################################################
@ -12,12 +17,18 @@ killall nm-applet && nm-applet &
killall volumeicon && volumeicon &
#killall conky
#sleep 3 && conky -c ~/.config/conky/conkyrc
~/scripts/random_wallpaper.sh
wmname LG3D
export _JAVA_AWT_WM_NONREPARETING=1
bspc monitor -d 1 2 3 4 5
if [[ $JUPCID == "HOME-DESKTOP" ]]; then
bspc monitor DP-4 -d 1 2 3 4 5
bspc monitor HDMI-0 -d 6 7 8 9 0
else
bspc monitor -d 1 2 3 4 5 6 7 8 9 0
fi
bspc config border_width 2
bspc config window_gap 10
@ -29,9 +40,9 @@ bspc config gapless_monocle true
#bspc config pointer_follows_focus true
#bspc config single_monocle true
bspc config top_monocle_padding 20
bspc config left_monocle_padding 20
bspc config right_monocle_padding 20
bspc config bottom_monocle_padding 20
bspc config left_monocle_padding 20
bspc config right_monocle_padding 20
bspc config bottom_monocle_padding 20
#bspc config ignore_ewmh_fullscreen enter
# Colors
@ -61,4 +72,8 @@ bspc rule -a \* state=tiled
#fi
# TODO heres polybar
polybar panel-bspwm
if [[ $JUPCID == "HWDEV" ]]; then
polybar panel-bspwm --config=~/.config/polybar/config.ini
else
polybar panel-bspwm-1 & polybar panel-bspwm-2
fi

View File

@ -39,8 +39,8 @@
;; select theme
(setq custom-theme-sel 'doom-one)
;; default transparency (85 . 50) or (100 . 100)
(set-frame-parameter (selected-frame) 'alpha '(85 . 50))
;; default transparency (85 . 85) or (100 . 100)
(set-frame-parameter (selected-frame) 'alpha '(85 . 85))
;; Org setup
(setq custom-org-directory "~/org"

View File

@ -6,6 +6,8 @@
(setq auto-mode-case-fold nil)
(setq vc-follow-symlinks t) ;; always follow symlink
(unless (or (daemonp) noninteractive init-file-debug)
;; Prevent flashing of messages at startup
(when (display-graphic-p)

View File

@ -8,6 +8,8 @@
(global-unset-key (kbd "C-j"))
(global-unset-key (kbd "C-k"))
(global-unset-key (kbd "S-SPC")) ;; input method / use only S-\
(global-set-key (kbd "C-=") 'text-scale-increase)
(global-set-key (kbd "C--") 'text-scale-decrease)
;; When you begin a keybind, whichkey will show you all keybinds you can follow the first one with in order to form a full keywords.
(use-package which-key

View File

@ -2,16 +2,16 @@
monitor=DP-3, 2560x1440,0x0,1
monitor=HDMI-A-1,1920x1080,2560x-480,1,transform,3
workspace= name:work1,monitor:DP-3,1
workspace= name:work2,monitor:HDMI-A-1,2
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
exec-once = source ~/.xprofile
exec-once = killall hypaper & hyprpaper -c ~/.config/hypr/hyprpaper/hyprpaper.conf &
exec-once = ~/scripts/random_hypaper.sh
exec-once = killall waybar
exec-once = waybar --config ~/.config/hypr/waybar/config-mon1 --style ~/.config/hypr/waybar/style.css &
exec-once = waybar --config ~/.config/hypr/waybar/config-mon2 --style ~/.config/hypr/waybar/style.css &
exec-once = seadrive-gui &
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
@ -33,9 +33,25 @@ env = LIBVA_DRIVER_NAME, nvidia
env = GBM_BACKEND, nvidia-drm
env = GDK_BACKEND, wayland,x11
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = __GL_VRR_ALLOWED,1
env = WLR_DRM_NO_ATOMIC,1
workspace = 1, monitor:DP-3
workspace = 2, monitor:DP-3
workspace = 3, monitor:DP-3
workspace = 4, monitor:DP-3
workspace = 5, monitor:DP-3
workspace = 6, monitor:HDMI-A-1
workspace = 7, monitor:HDMI-A-1
workspace = 8, monitor:HDMI-A-1
workspace = 9, monitor:HDMI-A-1
workspace = 0, monitor:HDMI-A-1
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
kb_layout = kr
kb_variant =
kb_model =
kb_options =

View File

@ -1,3 +1,5 @@
splash = false
preload = ~/walls/normal/from_arcolinux/mystery-3840x2160.jpg
preload = ~/walls/idol/portrait/karina/img2.jpeg

View File

@ -1,8 +1,6 @@
####################################################################################################
## Global Settings
####################################################################################################
[global/wm]
margin-top = 0
margin-bottom = 0
@ -324,6 +322,131 @@ tray-background = ${colors.background}
scroll-up = bspwm-desknext
scroll-down = bspwm-deskprev
####################################################################################################
## BSPWM PANEL1
####################################################################################################
[bar/panel-bspwm-1]
monitor = DP-4
;monitor-fallback = HDMI1
width = 100%
height = 20
;offset-x = 1%
;offset-y = 1%
radius = 0.0
fixed-center = true
bottom = false
separator =
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
wm-restack = bspwm
override-redirect = true
; Enable support for inter-process messaging
; See the Messaging wiki page for more details.
enable-ipc = true
border-size = 0
;border-left-size = 0
;border-right-size = 25
;border-top-size = 0
;border-bottom-size = 25
border-color = #00000000
padding-left = 1
padding-right = 1
module-margin-left = 0
module-margin-right = 0
font-0 = "Ubuntu:style=Bold:size=9;2"
font-1 = "UbuntuMono Nerd Font:style=Bold:size=18;3"
font-2 = "Font Awesome 6 Free:style=Regular:pixelsize=8;1"
font-3 = "Font Awesome 6 Free:style=Solid:pixelsize=8;1"
font-4 = "Font Awesome 6 Brands:pixelsize=8;1"
modules-left = bspwm xwindow
modules-center =
modules-right = kernel cpu2 memory2 filesystem date networkspeed pacman-updates volume
tray-detached = false
tray-offset-x = 0
tray-offset-y = 0
tray-position = right
tray-padding = 4
tray-maxsize = 20
tray-scale = 1.0
tray-background = ${colors.background}
scroll-up = bspwm-desknext
scroll-down = bspwm-deskprev
####################################################################################################
## BSPWM PANEL2
####################################################################################################
[bar/panel-bspwm-2]
monitor = HDMI-0
;monitor-fallback = HDMI1
width = 100%
height = 20
;offset-x = 1%
;offset-y = 1%
radius = 0.0
fixed-center = true
bottom = false
separator =
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
wm-restack = bspwm
override-redirect = true
; Enable support for inter-process messaging
; See the Messaging wiki page for more details.
enable-ipc = true
border-size = 0
;border-left-size = 0
;border-right-size = 25
;border-top-size = 0
;border-bottom-size = 25
border-color = #00000000
padding-left = 1
padding-right = 1
module-margin-left = 0
module-margin-right = 0
font-0 = "Ubuntu:style=Bold:size=9;2"
font-1 = "UbuntuMono Nerd Font:style=Bold:size=18;3"
font-2 = "Font Awesome 6 Free:style=Regular:pixelsize=8;1"
font-3 = "Font Awesome 6 Free:style=Solid:pixelsize=8;1"
font-4 = "Font Awesome 6 Brands:pixelsize=8;1"
modules-left = bspwm xwindow
modules-center =
modules-right = kernel cpu2 memory2 filesystem uptime date
tray-detached = false
tray-offset-x = 0
tray-offset-y = 0
tray-position = right
tray-padding = 4
tray-maxsize = 20
tray-scale = 1.0
tray-background = ${colors.background}
scroll-up = bspwm-desknext
scroll-down = bspwm-deskprev
####################################################################################################
## EXWM PANEL
####################################################################################################
@ -401,16 +524,6 @@ enable-scroll = true
reverse-scroll = true
pin-workspaces = true
#ws-icon-0 = 1;1: dev
#ws-icon-1 = 2;2: www
#ws-icon-2 = 3;3: sys
#ws-icon-3 = 4;4: doc
#ws-icon-4 = 5;5: vbox
#ws-icon-5 = 6;6: chat
#ws-icon-6 = 7;7: mus
#ws-icon-7 = 8;8: vid
#ws-icon-8 = 9;9: gfx
#ws-icon-9 = 10;
ws-icon-0 = 1;1
ws-icon-1 = 2;2
ws-icon-2 = 3;3
@ -506,30 +619,6 @@ content-font = 2
content-foreground = #8b62a9
content-background = #668bd7
[module/arch-aur-updates]
type = custom/script
exec = ~/.config/polybar/scripts/check-all-updates.sh
interval = 1000
label = Updates: %output%
format-prefix = "🗘 "
format-prefix-foreground = ${colors.color2}
format-foreground = ${colors.color2}
format-background = ${colors.background}
format-underline = ${colors.color2}
format-margin = 2
format-padding = 0
[module/aur-updates]
type = custom/script
exec = cower -u | wc -l
interval = 1000
label = Aur: %output%
format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix = "🗘 "
format-prefix-foreground = #FFBB00
format-underline = #FFBB00
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
@ -839,14 +928,6 @@ format-underline = ${colors.color2}
format-margin = 2
format-padding = 0
[module/jgmenu]
type = custom/script
interval = 120
exec = echo "ArcoLinux"
click-left = "jgmenu_run >/dev/null 2>&1 &"
format-foreground = ${colors.foreground}
format-background = ${colors.background}
[module/load-average]
type = custom/script
exec = uptime | grep -ohe 'load average[s:][: ].*' | awk '{ print $3" "$4" "$5"," }' | sed 's/,//g'
@ -944,7 +1025,7 @@ type = internal/network
;interface = wlp3s0
;interface = enp14s0
;interface = enp0s31f6
interface = enp6s0
interface = enp10s0
label-connected = "%upspeed:7% ↓ %downspeed:7%"
format-connected = <label-connected>
format-connected-prefix = "↑ "
@ -1027,17 +1108,6 @@ label = %output%
format-prefix = "  "
format-prefix-foreground = #FFBB00
[module/release]
type = custom/script
exec = (lsb_release -d | awk {'print $2'} ;echo " "; lsb_release -r | awk {'print $2'}) | tr -d '\n'
interval = 6000
format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix = "  "
format-prefix-foreground = #62FF00
format-underline = #62FF00
[module/sep]
; alternative separator
type = custom/text
@ -1047,21 +1117,6 @@ content-background = ${colors.background}
format-foreground = ${colors.foreground}
format-background = ${colors.background}
[module/spotify]
;https://github.com/NicholasFeldman/dotfiles/blob/master/polybar/.config/polybar/spotify.sh
type = custom/script
exec = ~/.config/polybar/scripts/spotify1.sh
interval = 1
;format = <label>
format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-padding = 2
format-underline = #0f0
format-prefix = " "
format-prefix-foreground = #0f0
label = %output:0:150%
[module/temperature1]
;https://github.com/jaagr/polybar/wiki/Module:-temperature
type = internal/temperature
@ -1107,13 +1162,6 @@ format-underline = #C1B93E
format-prefix-foreground = #C1B93E
label =  %output:0:150:%
[module/xmonad]
type = custom/script
exec = xmonad-log
tail = true
format-background = ${colors.background}
format-foreground = ${colors.foreground}
[module/uptime]
;https://github.com/jaagr/polybar/wiki/User-contributed-modules#uptime
type = custom/script
@ -1161,22 +1209,10 @@ format-muted-prefix-foreground = "#ff0000"
format-muted-foreground = ${colors.foreground}
format-muted-background = ${colors.background}
[module/weather]
type = custom/script
interval = 10
format = <label>
format-prefix = " "
format-prefix-foreground = #3EC13F
format-underline = #3EC13F
format-foreground = ${colors.foreground}
format-background = ${colors.background}
exec = python -u ~/.config/polybar/scripts/weather.py
tail = true
[module/wired-network]
;https://github.com/jaagr/polybar/wiki/Module:-network
type = internal/network
interface = enp4s0
interface = enp10s0
;interface = enp14s0
interval = 3.0
@ -1241,12 +1277,6 @@ ramp-signal-6 = ▇
ramp-signal-7 =
ramp-signal-foreground = #7e52c6
[module/workspaces-xmonad]
type = custom/script
exec = tail -F /tmp/.xmonad-workspace-log
exec-if = [ -p /tmp/.xmonad-workspace-log ]
tail = true
[module/xbacklight]
;https://github.com/jaagr/polybar/wiki/Module:-xbacklight
type = internal/xbacklight
@ -1290,14 +1320,6 @@ label-indicator-background = ${colors.background}
label-indicator-underline = ${colors.foreground}
[module/xmenu]
type = custom/script
interval = 1200
exec = echo "  "
click-left = "sh ~/xmenu/xmenu.sh"
format-foreground = ${colors.foreground}
format-background = ${colors.background}
[module/xwindow]
;https://github.com/jaagr/polybar/wiki/Module:-xwindow
type = internal/xwindow

View File

@ -1,7 +1,6 @@
#Config file for simple X hotkey daemon
super+Return
# st
alacritty
#Apps and programs
super+e
@ -12,15 +11,23 @@ super+b
super+f
firefox
# workspace
super + {1,2,3,4,5}
bspc desktop -f {1,2,3,4,5}; bspc query -N -n .local.window.hidden | xargs -I\{\} bspc node \{\} -g hidden; bspc query -N -n .local.window.fullscreen | xargs -I\{\} bspc node \{\} -t tiled; polybar-msg cmd show;
super + shift + {1-5}
bspc node -d '^{1-5}'
super + {1,2,3,4,5,6,7,8,9,0}
bspc desktop -f {1,2,3,4,5,6,7,8,9,0}; bspc query -N -n .local.window.hidden | xargs -I\{\} bspc node \{\} -g hidden; bspc query -N -n .local.window.fullscreen | xargs -I\{\} bspc node \{\} -t tiled; polybar-msg cmd show;
super + shift + {1-9}
bspc node -d '^{1-9}'
super + shift + 0
bspc node -d 0
super+t
thunar
# close & kill
super+shift+c
bspc node -c
super+shift+q
killall picom & killall sxhkd & bspc quit
super+shift+e
rofi -mode drun -theme solarized -font "hack 20" -show combi
alt+Tab
rofi -mode window -theme solarized -font "hack 20" -show
##rofi things
##Launch apps
@ -92,7 +99,7 @@ super+shift+c
#
## Toggle picom
super+p
if [ "$(pgrep -c picom) -eq 0" ]; then; picom; else; killall picom; fi
if (pgrep -c picom); then; killall picom; else; picom; fi
super+w
~/scripts/random_wallpaper.sh

8
.zshrc
View File

@ -41,10 +41,12 @@ alias ll="exa -l --color=always --group-directories-first"
alias lt="exa -aT --color=always --group-directories-first"
alias l.='exa -a | egrep "^\."'
#cat ~/.cache/wal/sequences &
# WSL2
#source ~/scripts/custom_env.sh
if [[ $JUPCID == "WSL" ]];then
VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
export DISPLAY=$VETHER_IP:10.0
fi
# python env
export PYTHONSTARTUP=~/scripts/my_imports.py

View File

@ -1,9 +0,0 @@
#!/bin/bash
# configurable parameter
JAEUS_ENV="WSL"
if [[ $JAEUS_ENV == "WSL" ]];then
VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
export DISPLAY=$VETHER_IP:10.0
fi

View File

@ -1,23 +0,0 @@
#!/bin/sh
echo "===================================="
echo "Share Directory Mount?(y/N)?"
echo ${whoami}
read val
if [ "${val}" == "" ]; then
val="N"
fi
if [ "${val}" == "y" ];then
echo "address(ex://192.168.1.144/d)?"
read addr
echo "user(ex:JaeUs-HV)?"
read user
echo "password?"
read pass
echo "mount point(ex:/home/jaeus/mnt)?"
read mpoint
sudo echo "${addr} ${mpoint} cifs _netdev,nofail,username=${user},password=${pass},uid=jaeus,gid=jaeus 0 0" >> /etc/fstab
fi

View File

@ -11,7 +11,7 @@ randomfile=$(printf "%s\n" "${files[RANDOM % ${#files[@]}]}")
echo $randomfile
hyprctl hyprpaper preload $randomfile
hyprctl hyprpaper wallpaper "DP-3,$randomfile"
hyprctl hyprpaper wallpaper "DP-3,contain:$randomfile"
files=()
while IFS= read -r -d $'\0'; do
@ -20,5 +20,6 @@ done < <(find $wal_dir2 -type f -name "*" -print0)
randomfile=$(printf "%s\n" "${files[RANDOM % ${#files[@]}]}")
echo $randomfile
hyprctl hyprpaper preload $randomfile
hyprctl hyprpaper wallpaper "HDMI-A-1,$randomfile"
hyprctl hyprpaper wallpaper "HDMI-A-1,contain:$randomfile"
hyprctl hyprpaper unload all

View File

@ -10,5 +10,11 @@ while IFS= read -r -d $'\0'; do
done < <(find $wal_dir -type f -name "*" -print0)
randomfile=$(printf "%s\n" "${files[RANDOM % ${#files[@]}]}")
echo $randomfile
wal -i $randomfile --saturate 1.0
#feh --bg-fill $randomfile
files=()
while IFS= read -r -d $'\0'; do
files+=("$REPLY")
done < <(find $wal_dir -type f -name "*" -print0)
randomfile2=$(printf "%s\n" "${files[RANDOM % ${#files[@]}]}")
echo $randomfile2
feh --bg-max "$randomfile" --bg-max "$randomfile2"

View File

@ -1,19 +0,0 @@
#!/bin/bash
# update my linux config
cd ~/.dotfiles
git pull
# update linux packages
paru
# update bitwarden
cd ~/server/bitwarden_docker
sudo docker-compose down
sudo docker-compose pull
sudo docker-compose up -d
# wetty
yarn global upgrade wetty
# doom emacs upgrade
~/.emacs.d/bin/doom upgrade

View File

@ -1,10 +0,0 @@
# SSH Daemon
sudo /bin/sshd
# Cron
sudo /bin/crond
# Ip config ( When Netcus desktop )
sudo ip addr add dev eth0 192.168.144.2/24
sudo ip addr add dev eth0 192.168.1.146/24