Compare commits

..

57 commits

Author SHA1 Message Date
916b4e75d7
Updated install.sh 2022-10-23 17:15:32 -04:00
856231100c
Added tint2 2022-10-23 17:02:32 -04:00
d3cb189760
Comment unused packages 2022-10-23 16:56:36 -04:00
5871a0776c
Updates to autostart 2022-10-23 16:56:36 -04:00
bf47315394
Change font 2022-10-23 16:56:36 -04:00
9cdb25b4ac
add conda, debugging for c, use flake8 for python linting 2022-10-23 16:56:33 -04:00
d1c0032021
dpi scaling for ghex 2022-10-23 16:55:01 -04:00
9ff1ab92a8
testing tint2, added redshift to startup 2022-10-23 16:55:01 -04:00
154cf88da4
dpi scaling for pinta, gajim, ristretto 2022-10-23 16:55:00 -04:00
ad955825ab
fixed DPI scaling for simple-scan 2022-10-23 16:55:00 -04:00
bd122d4c70
added rule for Gajim 2022-10-23 16:55:00 -04:00
60fe8e7896
Update rule for thunderbird 2022-10-23 16:55:00 -04:00
0c30c34384
Move GOPATH 2022-10-23 16:55:00 -04:00
0de2782d06
Update bspc rules 2022-10-23 16:55:00 -04:00
a1c2864ae6
Remove redundant directive, add auto-imports for Go 2022-10-23 16:55:00 -04:00
507e5698eb
Added go-mode 2022-10-23 16:55:00 -04:00
b1c8b83c0f
Make executable 2022-10-23 16:55:00 -04:00
eb1fdbc6d3
Remove deprecated options 2022-10-23 16:54:33 -04:00
f76cc075df
DPI scaling for spotify 2022-10-23 16:54:33 -04:00
6e90219118
Added more colors 2022-10-23 16:54:33 -04:00
c3c7c3029f
Add config.everforest.rasi 2022-10-23 16:54:33 -04:00
18ecf6f602
Fixed scaling for simple-scan 2022-10-23 16:54:33 -04:00
8b75a2547c
Update for font awesome 6 2022-10-23 16:54:32 -04:00
f2ebb1ce3a
Added data-structures-hw.yasnippet 2022-10-23 16:54:32 -04:00
8f772b083d
Updated screenshots for zenburn theme 2022-10-23 16:54:32 -04:00
2946f0fe93
Restored proper extension on rofi configs 2022-10-23 16:54:32 -04:00
b1036da8fd
Merged separate Xresources files 2022-10-23 16:54:32 -04:00
8be33187a8
Added and changed to zenburn theme globally 2022-10-23 16:54:32 -04:00
b80c31517b
Update bspc rules 2022-10-23 16:54:32 -04:00
eaf40a3d0e
Updated for 162 2022-10-23 16:53:34 -04:00
7341aaee88
Initial commit 2022-10-23 16:53:30 -04:00
0bb946adab
Fix rebase conflicts 2022-10-23 16:52:37 -04:00
2980eaad16
Update README.md 2022-10-23 16:52:37 -04:00
867bb9a087
Initial commit 2022-10-23 16:52:37 -04:00
45048c880a
Updated for Font Awesome 6 2022-10-23 16:52:37 -04:00
c85124e1b4
Force some gtk apps to scale correctly 2022-10-23 16:52:37 -04:00
ed58c860cf
Reduced amount brightness changes via fn keys 2022-10-23 16:52:37 -04:00
a877e974e6
Switch to light blue for pulseaudio-control module 2022-10-23 16:52:37 -04:00
0386f03c53
Replaced music workspace with discord, cleaned up bspc rules 2022-10-23 16:52:37 -04:00
199bbb986d
Show icons in rofi app menu 2022-10-23 16:52:36 -04:00
f0fecdae75
Added rule for discord 2022-10-23 16:52:36 -04:00
f1df2cdcf8
Restored proper extension on rofi configs 2022-10-23 16:52:36 -04:00
5c169d04fe
Merged separate Xresources files 2022-10-23 16:52:36 -04:00
f87066db78
Added and changed to zenburn theme globally 2022-10-23 16:52:36 -04:00
3d87066bd8
Experimenting with KeePassXC, added bspc rule 2022-10-23 16:52:36 -04:00
b2cf6e880a
Removed ranger 2022-10-23 16:52:36 -04:00
59478a2db8
Updated Teams bspc rule 2022-10-23 16:52:36 -04:00
409d7d337b
Update bspc rules 2022-10-23 16:52:36 -04:00
b226d394e6
Updated for 162 2022-10-23 16:52:36 -04:00
debc35fa51
Added rule for virt-manager 2022-10-23 16:52:36 -04:00
73138850fb
Rebase 2022-10-23 16:52:29 -04:00
a13b576bea
Update README.md 2022-10-23 16:51:09 -04:00
ac179d9696
Initial commit 2022-10-23 16:51:09 -04:00
171d3edd66
Added xsettingsd 2022-10-23 16:50:02 -04:00
c4caa65fcf
Update .gitignore.main 2022-10-23 16:49:10 -04:00
2539f6ac96
Import changes from laptop-hidpi branch 2022-10-23 16:45:02 -04:00
1b902820f4
sink-nicknames option replaced with node-nicknames 2022-10-11 21:23:03 -04:00
9 changed files with 580 additions and 92 deletions

View file

@ -15,6 +15,7 @@ config/polybar/*
!config/polybar/custom_modules.ini
!config/ranger
!config/rofi
!config/xsettingsd
emacs.d/*
!emacs.d/init.el
!emacs.d/snippets

18
bin/tint2-launcher Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
# Terminate already running bar instances
killall -q tint2
# Wait until the processes have been shut down
while pgrep -u $UID -x tint2 >/dev/null; do sleep 1; done
# Launch tint2
tint2 & disown
# Final command won't work without sleep
sleep 1 &&
# Keep tint2 below other windows in fullscreen
if pgrep -x "tint2" > /dev/null ; then
xdo above -t "$(xdo id -N Bspwm -n root | sort | head -n 1)" $(xdo id -n tint2)
fi

View file

@ -48,13 +48,16 @@ bspc desktop -f 1
### Autostart
grep -x sxhkd > /dev/null || sxhkd &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
$HOME/.local/bin/single-polybar-launcher &
#$HOME/.local/bin/tint2-launcher &
xsettingsd &
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
xidlehook --not-when-audio --not-when-fullscreen --timer 120 "xrandr --output eDP-1 --brightness .1" "xrandr --output eDP-1 --brightness 1" --timer 480 "xset s activate" "xrandr --output eDP-1 --brightness 1" &
xidlehook --not-when-audio --not-when-fullscreen --timer 120 "killall -q redshift && xrandr --output eDP-1 --brightness .1" "xrandr --output eDP-1 --brightness 1 && redshift -r & disown" --timer 480 "xset s activate" "xrandr --output eDP-1 --brightness 1" &
xsettingsd &
sh ~/.fehbg &
#$HOME/.local/bin/single-polybar-launcher &
$HOME/.local/bin/tint2-launcher &
redshift -r &
picom &
dunst &
dex -a &
redshift-gtk &
pa-notify -t 3 &
birdtray &
sleep 30 && nextcloud --background &

View file

@ -51,7 +51,7 @@
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 2
separator_height = 4
# Padding between text and separator.
padding = 8
@ -86,7 +86,7 @@
### Text ###
font = Fira Mono 11
font = Hack 11
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.

280
config/tint2/tint2rc Normal file
View file

@ -0,0 +1,280 @@
#---- Generated by tint2conf aeaf ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
# Gradient 1: thin film effect
gradient = horizontal
start_color = #111122 30
end_color = #112211 30
color_stop = 60 #221111 30
# Gradient 2: radial glow
gradient = radial
start_color = #ffffff 20
end_color = #ffffff 0
#-------------------------------------
# Backgrounds
# Background 1: Panel
rounded = 0
border_width = 0
border_sides = TBLR
background_color = #323d43 100
border_color = #323d43 30
background_color_hover = #323d43 70
border_color_hover = #323d43 30
background_color_pressed = #323d43 100
border_color_pressed = #323d43 30
# Background 2: Default task, Iconified task
rounded = 4
border_width = 1
border_sides = TBLR
background_color = #4a555b 20
border_color = #525c62 30
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44
# Background 3: Active task
rounded = 4
border_width = 1
border_sides = TBLR
background_color = #7fbbb3 40
border_color = #d8caac 40
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44
# Background 4: Urgent task
rounded = 4
border_width = 1
border_sides = TBLR
background_color = #e26c6e 100
border_color = #d5b26b 100
background_color_hover = #dbbc7f 100
border_color_hover = #d5b26b 100
background_color_pressed = #555555 4
border_color_pressed = #d5b26b 100
# Background 5: Tooltip
rounded = 1
border_width = 1
border_sides = TBLR
background_color = #9bb86f 100
border_color = #4a555b 100
background_color_hover = #ffffaa 100
border_color_hover = #000000 100
background_color_pressed = #ffffaa 100
border_color_pressed = #000000 100
#-------------------------------------
# Panel
panel_items = TEEB:SCP
panel_size = 100% 48
scale_relative_to_dpi = 216
panel_margin = 0 0
panel_padding = 2 0 2
panel_background_id = 1
wm_menu = 1
panel_dock = 0
panel_position = top center horizontal
panel_layer = bottom
panel_monitor = all
panel_shrink = 0
autohide = 0
autohide_show_timeout = 0
autohide_hide_timeout = 0.5
autohide_height = 2
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 1
mouse_effects = 1
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0
#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 1
taskbar_padding = 0 0 2
taskbar_background_id = 0
taskbar_active_background_id = 0
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 4 2
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font = Hack 18
taskbar_name_font_color = #d8caac 100
taskbar_name_active_font_color = #d0bf9b 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left
#-------------------------------------
# Task
task_text = 1
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 100000
task_maximum_size = 150 35
task_padding = 2 4 2
task_tooltip = 1
task_thumbnail = 0
task_thumbnail_size = 210
task_font = Hack 10
task_font_color = #d8caac 100
task_background_id = 2
task_active_background_id = 3
task_urgent_background_id = 4
task_iconified_background_id = 2
mouse_left = toggle
mouse_middle = none
mouse_right = close
mouse_scroll_up = prev_task
mouse_scroll_down = next_task
#-------------------------------------
# System tray (notification area)
systray_padding = 2 4 4
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 28
systray_icon_asb = 100 0 0
systray_monitor = 1
systray_name_filter =
#-------------------------------------
# Launcher
launcher_padding = 2 4 2
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 24
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 1
launcher_tooltip = 1
launcher_item_app = tint2conf.desktop
launcher_item_app = firefox.desktop
launcher_item_app = iceweasel.desktop
launcher_item_app = chromium-browser.desktop
launcher_item_app = google-chrome.desktop
#-------------------------------------
# Clock
time1_format = %H:%M
time2_format = %a %d %b
time1_font = Hack 14
time2_font = Hack 10
time1_timezone =
time2_timezone =
clock_font_color = #d8caac 100
clock_padding = 6 0
clock_background_id = 0
clock_tooltip = %H:%M %A %d %B %Y
clock_tooltip_timezone =
clock_lclick_command = gsimplecal
clock_rclick_command =
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =
#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 10
battery_low_cmd = notify-send "Low battery: 10%"
battery_full_cmd = notify-send "Battery done charging"
bat1_font = Hack 14
battery_font_color = #d8caac 100
bat1_format = | Bat: %s %p %t
bat2_format =
battery_padding = 1 0
battery_background_id = 0
battery_hide = 101
battery_lclick_command =
battery_rclick_command =
battery_mclick_command =
battery_uwheel_command =
battery_dwheel_command =
ac_connected_cmd = notify-send "AC Power connected"
ac_disconnected_cmd = "AC Power disconnected"
#-------------------------------------
# Tooltip
tooltip_show_timeout = 0.5
tooltip_hide_timeout = 0.1
tooltip_padding = 4 4
tooltip_background_id = 5
tooltip_font_color = #4a555b 100
tooltip_font = Hack 14
#-------------------------------------
# Separators
# Separator1
separator = new
separator_background_id = 0
separator_color = #7fbbb3
separator_style = dots
separator_size = 4
separator_padding = 12 0
# Separator2
separator = new
separator_background_id = 0
separator_color = #7fbbb3 80
separator_style = line
separator_size = 2
separator_padding = 12 0
# Separator3
separator = new
separator_background_id = 0
separator_color = #7fbbb3
separator_style = empty
separator_size = 6
separator_padding = 12 0
#-------------------------------------
# Executors
# Exec1
# Note the use of "stdbuf -oL" to force the program to flush the output line by line.
execp = new
execp_command = free -b -s10| stdbuf -oL awk '/^Mem:/ { printf "Mem: %s / \n", $3 }' | stdbuf -oL numfmt --to=iec-i --field=2 -d' '
execp_interval = 10
execp_continuous = 1
execp_font = Hack 14
execp_font_color = #d8caac 100
# Exec2
execp = new
execp_command = free -b -s10| stdbuf -oL awk '/^Mem:/ { printf "%s %.0f%%\n", $2, 100 * ($2 - $7) / $2 }' | stdbuf -oL numfmt --to=iec-i --field=1 -d' '
execp_interval = 10
execp_continuous = 1
execp_font = Hack 14
execp_font_color = #d8caac 100
#-------------------------------------
# Buttons
#Button1
button = new
button_text =
button_icon = /usr/share/icons/Papirus-Dark/24x24/actions/exit.svg
button_background_id = 0
button_lclick_command = rofi -dpi 240 -show power-menu -modi power-menu:/usr/bin/rofi-power-menu
button_mclick_command = rofi -dpi 240 -show power-menu -modi power-menu:"/usr/bin/rofi-power-menu --choose suspend/hibernate"
button_rclick_command = rofi -dpi 240 -show power-menu -modi power-menu:"/usr/bin/rofi-power-menu --choices reboot/shutdown"

View file

@ -0,0 +1,201 @@
#---- Generated by tint2conf aeaf ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Panel
rounded = 0
border_width = 0
border_sides = TBLR
background_color = #000000 60
border_color = #000000 30
background_color_hover = #000000 60
border_color_hover = #000000 30
background_color_pressed = #000000 60
border_color_pressed = #000000 30
# Background 2: Default task, Iconified task
rounded = 4
border_width = 1
border_sides = TBLR
background_color = #777777 20
border_color = #777777 30
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44
# Background 3: Active task
rounded = 4
border_width = 1
border_sides = TBLR
background_color = #777777 20
border_color = #ffffff 40
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44
# Background 4: Urgent task
rounded = 4
border_width = 1
border_sides = TBLR
background_color = #aa4400 100
border_color = #aa7733 100
background_color_hover = #cc7700 100
border_color_hover = #aa7733 100
background_color_pressed = #555555 4
border_color_pressed = #aa7733 100
# Background 5: Tooltip
rounded = 1
border_width = 1
border_sides = TBLR
background_color = #222222 100
border_color = #333333 100
background_color_hover = #ffffaa 100
border_color_hover = #000000 100
background_color_pressed = #ffffaa 100
border_color_pressed = #000000 100
#-------------------------------------
# Panel
panel_items = LTSC
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 2 0 2
panel_background_id = 1
wm_menu = 1
panel_dock = 0
panel_position = bottom center horizontal
panel_layer = top
panel_monitor = all
panel_shrink = 0
autohide = 0
autohide_show_timeout = 0
autohide_hide_timeout = 0.5
autohide_height = 2
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 1
mouse_effects = 1
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0
#-------------------------------------
# Taskbar
taskbar_mode = single_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 0 0 2
taskbar_background_id = 0
taskbar_active_background_id = 0
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 4 2
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font_color = #e3e3e3 100
taskbar_name_active_font_color = #ffffff 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left
#-------------------------------------
# Task
task_text = 1
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 100000
task_maximum_size = 150 35
task_padding = 2 2 4
task_tooltip = 1
task_thumbnail = 0
task_thumbnail_size = 210
task_font_color = #ffffff 100
task_background_id = 2
task_active_background_id = 3
task_urgent_background_id = 4
task_iconified_background_id = 2
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify
#-------------------------------------
# System tray (notification area)
systray_padding = 0 4 2
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 24
systray_icon_asb = 100 0 0
systray_monitor = 1
systray_name_filter =
#-------------------------------------
# Launcher
launcher_padding = 2 4 2
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 24
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 1
launcher_tooltip = 1
launcher_item_app = tint2conf.desktop
launcher_item_app = firefox.desktop
launcher_item_app = iceweasel.desktop
launcher_item_app = chromium-browser.desktop
launcher_item_app = google-chrome.desktop
#-------------------------------------
# Clock
time1_format = %H:%M
time2_format = %A %d %B
time1_timezone =
time2_timezone =
clock_font_color = #ffffff 100
clock_padding = 2 0
clock_background_id = 0
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command =
clock_rclick_command = orage
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =
#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 10
battery_low_cmd = xmessage 'tint2: Battery low!'
battery_full_cmd =
battery_font_color = #ffffff 100
bat1_format =
bat2_format =
battery_padding = 1 0
battery_background_id = 0
battery_hide = 101
battery_lclick_command =
battery_rclick_command =
battery_mclick_command =
battery_uwheel_command =
battery_dwheel_command =
ac_connected_cmd =
ac_disconnected_cmd =
#-------------------------------------
# Tooltip
tooltip_show_timeout = 0.5
tooltip_hide_timeout = 0.1
tooltip_padding = 4 4
tooltip_background_id = 5
tooltip_font_color = #dddddd 100

View file

@ -0,0 +1,6 @@
Net/IconThemeName "Papirus-Dark"
Net/ThemeName "Materia-dark"
Xft/Hinting 1
Xft/HintStyle "hintfull"
Xft/Antialias 1
Xft/RGBA "rgb"

View file

@ -6,7 +6,7 @@
(scroll-bar-mode -1) ; Disable visible scrollbar
(tool-bar-mode -1) ; Disable the toolbar
(tooltip-mode -1) ; Disable tooltips
(set-fringe-mode 10) ; Give some breathing room
(set-fringe-mode 10) ; Add come extra space to the left/right sides
(menu-bar-mode -1) ; Disable the menu bar
(setq-default custom-file null-device) ; Write customizations not in this file to the null device (AKA stop littering in my init.el)
(setq confirm-kill-processes nil) ; Stop asking about running processes on exit
@ -68,11 +68,11 @@
conf-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 1))))
;; Show vertical line at column 80 to keep code clean in prog-mode
;; Show vertical line at column 80 in prog-mode
(setq-default fill-column 80)
(add-hook 'prog-mode-hook #'display-fill-column-indicator-mode)
; Override some modes which derive from the above
; No line numbers in org-mode
(dolist (mode '(org-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 0))))
@ -128,7 +128,7 @@
;; :config
;; (load-theme 'gruvbox-dark-soft t))
(add-to-list 'custom-theme-load-path "~/.cache/emacs/straight/build/everforest")
(add-to-list 'custom-theme-load-path "~/.cache/emacs/custom/everforest-theme")
(load-theme 'everforest-hard-dark t)
;; Help distinguish work buffers from others like sidebars and terminal
@ -291,7 +291,7 @@
(eval-when-compile
(require 'cl-lib))
(require 'dap-python)
(require 'dap-node)
;(require 'dap-node)
(require 'dap-lldb)
:bind
(:map dap-mode-map
@ -349,9 +349,9 @@
;; Golang
(use-package go-mode
:config
(add-hook 'before-save-hook #'lsp-organize-imports))
;; (use-package go-mode
;; :config
;; (add-hook 'before-save-hook #'lsp-organize-imports))
;; Java
@ -359,35 +359,35 @@
;; JavaScript/TypeScript, HTML, CSS
(setq css-indent-level 2)
(setq css-indent-offset 2)
(setq js-indent-level 2)
;; (setq css-indent-level 2)
;; (setq css-indent-offset 2)
;; (setq js-indent-level 2)
(add-to-list 'auto-mode-alist '("\\.mjs\\'" . js-mode))
;; (add-to-list 'auto-mode-alist '("\\.mjs\\'" . js-mode))
(use-package js2-mode
:config
(add-to-list 'interpreter-mode-alist '("#!/usr/bin/env node" . js2-mode))
;(setq js2-strict-missing-semi-warning t)
(setq js2-mode-show-strict-warnings t)
:hook (js-mode . js2-minor-mode))
;; (use-package js2-mode
;; :config
;; (add-to-list 'interpreter-mode-alist '("#!/usr/bin/env node" . js2-mode))
;; ;(setq js2-strict-missing-semi-warning t)
;; (setq js2-mode-show-strict-warnings t)
;; :hook (js-mode . js2-minor-mode))
(use-package typescript-mode
:config
(setq typescript-indent-level 2)
:mode ("\\.ts\\'" . typescript-mode)
("\\.tsx\\'" . typescript-mode))
;; (use-package typescript-mode
;; :config
;; (setq typescript-indent-level 2)
;; :mode ("\\.ts\\'" . typescript-mode)
;; ("\\.tsx\\'" . typescript-mode))
(use-package restclient
:init
(use-package company-restclient)
:mode ("\\.http\\'" . restclient-mode))
;; (use-package restclient
;; :init
;; (use-package company-restclient)
;; :mode ("\\.http\\'" . restclient-mode))
(use-package rainbow-mode
:hook
((js-mode . rainbow-mode)
(typescript-mode . rainbow-mode)
(web-mode . rainbow-mode)))
;; (use-package rainbow-mode
;; :hook
;; ((js-mode . rainbow-mode)
;; (typescript-mode . rainbow-mode)
;; (web-mode . rainbow-mode)))
;; (use-package skewer-mode
;; :init
@ -404,36 +404,36 @@
;; (use-package simple-httpd)
(use-package web-mode
:config
(setq web-mode-code-indent-offset 2)
(setq web-mode-markup-indent-offset 2)
(setq web-mode-attribute-indent-offset 2)
:mode
(("\\.phtml\\'" . web-mode)
("\\.tpl\\.php\\'" . web-mode)
("\\.jsp\\'" . web-mode)
("\\.as[cp]x\\'" . web-mode)
("\\.erb\\'" . web-mode)
("\\.mustache\\'" . web-mode)
("\\.djhtml\\'" . web-mode)
("\\.jst.ejs\\'" . web-mode)
("\\.html?\\'" . web-mode)))
;; (use-package web-mode
;; :config
;; (setq web-mode-code-indent-offset 2)
;; (setq web-mode-markup-indent-offset 2)
;; (setq web-mode-attribute-indent-offset 2)
;; :mode
;; (("\\.phtml\\'" . web-mode)
;; ("\\.tpl\\.php\\'" . web-mode)
;; ("\\.jsp\\'" . web-mode)
;; ("\\.as[cp]x\\'" . web-mode)
;; ("\\.erb\\'" . web-mode)
;; ("\\.mustache\\'" . web-mode)
;; ("\\.djhtml\\'" . web-mode)
;; ("\\.jst.ejs\\'" . web-mode)
;; ("\\.html?\\'" . web-mode)))
(use-package jsdoc
:straight (jsdoc :type git :host github :repo "isamert/jsdoc.el")
:bind ("C-c C-n" . jsdoc))
;; (use-package jsdoc
;; :straight (jsdoc :type git :host github :repo "isamert/jsdoc.el")
;; :bind ("C-c C-n" . jsdoc))
;; LaTeX
(use-package lsp-latex)
;; (use-package lsp-latex)
(setq lsp-tex-server 'digestif)
;; (setq lsp-tex-server 'digestif)
;; Protocol Buffers
(use-package protobuf-mode)
;; (use-package protobuf-mode)
;; Python
@ -481,8 +481,7 @@
(use-package flycheck
:hook (lsp-mode . flycheck-mode)
:config
(setq flycheck-python-flake8-executable "flake8")
(flycheck-select-checker 'python-flake8))
(setq flycheck-python-flake8-executable "flake8"))
;; Templating
(use-package yasnippet

View file

@ -14,32 +14,9 @@ exec 1>$log_file 2>&1
## Backup current files and folders
mkdir -p $backup
cp -a ~/.bash_profile $backup/
cp -a ~/.bashrc $backup/
cp -a ~/.profile $backup/
cp -a ~/.emacs $backup/
cp -a ~/.emacs.d $backup/
cp -a ~/.Xresources $backup/
cp -a $config_dir/bspwm $backup/
cp -a $config_dir/dunst $backup/
cp -a $config_dir/kitty $backup/
cp -a $config_dir/nvim $backup/
cp -a $config_dir/polybar $backup/
cp -a $bin_dir $backup/
# Delete current files and folders
rm -rf ~/.bash_profile
rm -rf ~/.bashrc
rm -rf ~/.profile
rm -rf ~/.emacs
rm -rf ~/.emacs.d
rm -rf ~/.Xresources
rm -rf $config_dir/bspwm
rm -rf $config_dir/dunst
rm -rf $config_dir/kitty
rm -rf $config_dir/nvim
rm -rf $config_dir/polybar
rm -rf $bin_dir
mv -f ~/{.bash_profile,.bashrc,.profile,.emacs,.emacs.d,.vimrc,.xinitrc,.Xresources} $backup/
mv -f $config_dir/{bspwm,dunst,kitty,nvim,polybar,rofi,sxhkd,tint2,xsettingsd} $backup/
mv -f $bin_dir $backup/
# Create HOME symlinks
ln -sf $dotfiles_dir/bashrc ~/.bashrc
@ -51,11 +28,11 @@ ln -sf $dotfiles_dir/vimrc ~/.vimrc
ln -sf $dotfiles_dir/Xresources ~/.Xresources
# Create $config_dir, sub-directories, and symlinks
mkdir -p $config_dir/{bspwm,dunst,kitty,nvim,polybar,rofi,sxhkd}
mkdir -p $config_dir/{bspwm,dunst,kitty,nvim,polybar,rofi,tint2,sxhkd,xsettingsd}
ln -sf $dotfiles_dir/config/bspwm/bspwmrc $config_dir/bspwm/bspwmrc
ln -sf $dotfiles_dir/config/dunst/dunstrc $config_dir/dunst/dunstrc
ln -sf $dotfiles_dir/config/kitty/kitty.conf $config_dir/kitty/kitty.conf
#ln -sf $dotfiles_dir/config/kitty/gruvbox.conf $config_dir/kitty/gruvbox.conf
ln -sf $dotfiles_dir/config/kitty/gruvbox.conf $config_dir/kitty/gruvbox.conf
ln -sf $dotfiles_dir/config/kitty/zenburn.conf $config_dir/kitty/zenburn.conf
ln -sf $dotfiles_dir/config/nvim/init.vim $config_dir/nvim/init.vim
ln -sf $dotfiles_dir/config/polybar/config.ini $config_dir/polybar/config.ini
@ -63,15 +40,18 @@ ln -sf $dotfiles_dir/config/polybar/colors.ini $config_dir/polybar/colors.ini
ln -sf $dotfiles_dir/config/polybar/modules.ini $config_dir/polybar/modules.ini
ln -sf $dotfiles_dir/config/polybar/custom_modules.ini $config_dir/polybar/custom_modules.ini
ln -sf $dotfiles_dir/config/rofi/config.everforest.rasi $config_dir/rofi/config.rasi
#ln -sf $dotfiles_dir/config/rofi/config.gruvbox.rasi $config_dir/rofi/config.rasi
#ln -sf $dotfiles_dir/config/rofi/config.zenburn.rasi $config_dir/rofi/config.rasi
ln -sf $dotfiles_dir/config/rofi/config.gruvbox.rasi $config_dir/rofi/config.rasi
ln -sf $dotfiles_dir/config/rofi/config.zenburn.rasi $config_dir/rofi/config.rasi
ln -sf $dotfiles_dir/config/sxhkd/sxhkdrc $config_dir/sxhkd/sxhkdrc
ln -sf $dotfiles_dir/config/tint2/tint2rc $config_dir/tint2/tint2rc
ln -sf $dotfiles_dir/config/xsettingsd/xsettingsd.conf $config_dir/xsettingsd/xsettingsd.conf
# Create $bin_dir and symlinks
mkdir -p $bin_dir
ln -sf $dotfiles_dir/bin/mirror-outputs $bin_dir
ln -sf $dotfiles_dir/bin/single-polybar-launcher $bin_dir
ln -sf $dotfiles_dir/bin/toggle-wifi $bin_dir
ln -sf $dotfiles_dir/bin/tint2-launcher $bin_dir
# Finishing up
source ~/.bashrc