This commit is contained in:
2020-07-19 12:08:46 +09:00
parent 9257b32103
commit dbec9f8c79
14 changed files with 70 additions and 67 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
fcitx5/conf/cached_layouts
cached_layouts

52
linux-hidpi/bspwm/bspwmrc Executable file
View File

@@ -0,0 +1,52 @@
#! /bin/sh
bspc monitor -d I II III IV V VI VII VIII IX X
bspc config top_padding 27
bspc config border_width 0
bspc config window_gap 24
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
bspc rule -a Org.gnome.Nautilus desktop='^1' state=pseudo_tiled follow=on
bspc rule -a TelegramDesktop desktop='^1' state=floating follow=on
bspc rule -a Nextcloud desktop='^1' state=pseudo_tiled follow=on
bspc rule -a "*:transgui" desktop='^1' state=floating follow=on
bspc rule -a Google-chrome desktop='^2' follow=on
bspc rule -a baka-mplayer state=floating sticky=on
function kill_program {
if ps -A | grep $1; then
killall -q $1
fi
}
kill_program gnome-keyring-daemon
kill_program picom
kill_program pasystray
kill_program polybar
kill_program dunst
kill_program polkit-gnome-authentication-agent-1
kill_program gsd-xsettings
gnome-keyring-daemon --start --components=pkcs11 &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
/usr/lib/gsd-xsettings &
feh --bg-fill ${HOME}/.config/wallpaper.png
xsetroot -cursor_name left_ptr
picom --experimental-backends &
polybar mybar &
fcitx5 &
dunst &
sxhkd &
dex -a
libinput-gestures-setup restart
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
xinput set-prop "bcm5974" "libinput Accel Speed" 0.5
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Accel Speed' -0.5

BIN
linux-hidpi/dconf/user Normal file

Binary file not shown.

1
linux-hidpi/dunst Symbolic link
View File

@@ -0,0 +1 @@
/home/vbalien/newdotfiles/linux/dunst

View File

@@ -62,6 +62,9 @@ modules-right = pulseaudio wlan eth date
tray-position = right
tray-padding = 2
tray-scale = 1.0
tray-maxsize = 32
;tray-detached = true
;tray-offset-x = -10
;tray-background = #0063ff

Binary file not shown.

View File

@@ -1,55 +0,0 @@
{
"autoFit": 100,
"debug": false,
"gestures": false,
"hideAllControls": true,
"hidePopup": false,
"input": {
"Ctrl+S": [
"screenshot",
"Take screenshot without subtitles"
],
"Ctrl+Shift+T": [
"",
""
]
},
"lang": "ko",
"maxRecent": 5,
"mpv": {
"hwdec": "auto-copy",
"input-ipc-server": "/tmp/mpvsocket",
"msg-level": "status",
"screenshot-directory": "/home/vbalien/Pictures",
"screenshot-format": "",
"screenshot-template": "screenshot%#04n",
"speed": 1,
"vo": "",
"volume": 100
},
"onTop": "never",
"recent": [
{
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Ohys-Raws] Maou Gakuin no Futekigousha - 03 (AT-X 1280x720 x264 AAC).mp4"
},
{
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Ohys-Raws] Re Zero kara Hajimeru Isekai Seikatsu 2nd Season - 02 (AT-X 1920x1080 x264 AAC).mp4"
},
{
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Ohys-Raws] Yahari Ore no Seishun LoveCome wa Machigatte Iru. Kan - 02 (TBS 1920x1080 x264 AAC).mp4"
},
{
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Moozzi2] Machikado Mazoku - TV + SP/[Moozzi2] Machikado Mazoku - 01 (BD 1920x1080 x.264 Flac).mkv"
},
{
"path": "/run/user/1000/gvfs/afp-volume:host=home.alien.moe,user=vbalien,volume=Animations/[Ohys-Raws] Bang Dream! Garupa Pico Oomori - 02 (AT-X 1280x720 x264 AAC).mp4"
}
],
"remaining": true,
"resume": true,
"screenshotDialog": false,
"showAll": true,
"splitter": 313,
"trayIcon": false,
"version": "2.0.3"
}

View File

@@ -4,7 +4,7 @@ bspc monitor -d I II III IV V VI VII VIII IX X
bspc config top_padding 27
bspc config border_width 0
bspc config window_gap `expr 12 * $GDK_SCALE`
bspc config window_gap 24
bspc config split_ratio 0.52
bspc config borderless_monocle true
@@ -44,6 +44,7 @@ dunst &
sxhkd &
dex -a
libinput-gestures-setup restart
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1

View File

@@ -15,7 +15,7 @@ const linux: DotOption = {
`yay -S --needed
sxhkd bspwm rofi dunst-git visual-studio-code-bin
ttf-nanum polybar-git baka-mplayer-git
picom-ibhagwan-git alacritty zsh maim
picom-ibhagwan-git alacritty zsh maim gtk-engine-murrine
xclip xdotool google-chrome pulseaudio
gnome-keyring pasystray polkit-gnome nerd-fonts-terminus
gnome-settings-daemon nitrogen dex sassc
@@ -36,7 +36,6 @@ const linux: DotOption = {
".config/sxhkd": "linux/sxhkd",
".config/fcitx5": "linux/fcitx5",
".config/dconf": "linux/dconf",
".config/bakamplayer.ini": "linux/bakamplayer.ini",
".xinitrc": "linux/xinitrc",
".pam_environment": "linux/pam_environment",
".zshrc": "linux/zshrc",
@@ -44,22 +43,24 @@ const linux: DotOption = {
},
};
const linuxMacbook: DotOption = {
const linuxHiDPI: DotOption = {
...linux,
hostname: "MBP",
link: {
...linux.link,
".config/dconf": "linux-macbook/dconf",
".config/polybar": "linux-macbook/polybar",
".config/rofi": "linux-macbook/rofi",
".config/sxhkd": "linux-macbook/sxhkd",
".pam_environment": "linux-macbook/pam_environment",
".Xresources": "linux-macbook/Xresources",
".config/bspwm": "linux-hidpi/bspwm",
".config/dconf": "linux-hidpi/dconf",
".config/polybar": "linux-hidpi/polybar",
".config/rofi": "linux-hidpi/rofi",
".config/sxhkd": "linux-hidpi/sxhkd",
".config/dunst": "linux-hidpi/dunst",
".pam_environment": "linux-hidpi/pam_environment",
".Xresources": "linux-hidpi/Xresources",
},
};
try {
await dot(Deno.args, [linux, linuxMacbook]);
await dot(Deno.args, [linux, linuxHiDPI]);
} catch (err) {
console.log(err.message);
}