Laptop changes

This commit is contained in:
Daan Vanoverloop 2020-11-04 10:51:43 +01:00
parent ea869f52e6
commit 819fef0b3b
16 changed files with 108 additions and 328 deletions

View File

@ -1,39 +0,0 @@
[autohidewibox]
# Select your awesome version
# Possible values: 3, 4
awesomeVersion=4
# A comma-separated list of keys.
# Some suggestions:
# 133 - Meta-L
# 134 - Meta-R
# 37 - Ctrl-L
# 105 - Ctrl-R
# 66 - CapsLock
superKeys=133,134
# The show/hide behavior. Possible values:
# 'transient': The wibox is only shown while a super key is pressed.
# 'toggle': Pressing and releasing a super key (press and release) toggles
# the wibox visibility.
# Default = transient.
mode=transient
# The name of one or more (comma separated)
# wiboxes which to autohide.
wiboxname=mywibox
# Delay execution in ms
delayShow=600
delayHide=0
# Custom commands to send to awesome
# Use this to call custom-defined event functions in your awesome config
# (Note: You can leave 'wiboxname' above empty, or remove it completely)
customhide=stopgaps()
customshow=startgaps()
# Used for debug/development purposes. Prints extra bits information.
# Possible values: 0, 1
debug=0

View File

@ -1,171 +0,0 @@
#!/usr/bin/python3
import subprocess
import re
import configparser
import os.path as path
import sys
import threading
MODE_TRANSIENT = "transient"
MODE_TOGGLE = "toggle"
config = configparser.ConfigParser()
try:
userconf = path.join(path.expanduser("~"), ".config/autohidewibox.conf")
if len(sys.argv)>1 and path.isfile(sys.argv[1]):
config.read(sys.argv[1])
elif path.isfile(userconf):
config.read(userconf)
else:
config.read("/etc/autohidewibox.conf")
except configparser.MissingSectionHeaderError:
pass
awesomeVersion = config.get( "autohidewibox", "awesomeVersion", fallback=4)
superKeys = config.get( "autohidewibox", "superKeys", fallback="133,134").split(",")
wiboxes = config.get( "autohidewibox", "wiboxname", fallback="mywibox").split(",")
customhide = config.get( "autohidewibox", "customhide", fallback=None)
customshow = config.get( "autohidewibox", "customshow", fallback=None)
delayShow = config.getfloat( "autohidewibox", "delayShow", fallback=0)
delayHide = config.getfloat( "autohidewibox", "delayHide", fallback=0)
mode = config.get( "autohidewibox", "mode", fallback=MODE_TRANSIENT)
debug = config.getboolean("autohidewibox", "debug", fallback=False)
# (remove the following line if your wibox variables have strange characters)
wiboxes = [ w for w in wiboxes if re.match("^[a-zA-Z_][a-zA-Z0-9_]*$", w) ]
#python>=3.4: wiboxes = [ w for w in wiboxes if re.fullmatch("[a-zA-Z_][a-zA-Z0-9_]*", w) ]
delay = {True: delayShow, False: delayHide}
delayThread = None
wiboxIsCurrentlyVisible = False
waitingFor = False
nonSuperKeyWasPressed = False
cancel = threading.Event()
shPath = ""
shPotentialPaths = ["/usr/bin/sh", "/bin/sh"]
for p in shPotentialPaths:
if path.exists(p):
shPath = p
break
if shPath == "":
print("Can't find sh in any of: " + ",".join(shPotentialPaths), file=sys.stderr)
sys.exit(1)
hideCommand3 = "for k,v in pairs({wibox}) do v.visible = {state} end"
hideCommand4 = "for s in screen do s.{wibox}.visible = {state} end"
try:
hideCommand = hideCommand4 if int(awesomeVersion) >= 4 else hideCommand3
except ValueError:
hideCommand = hideCommand4
def _debug(*args):
if debug:
print(*args)
def setWiboxState(state=True, immediate=False):
global delayThread, waitingFor, cancel, wiboxIsCurrentlyShown
wiboxIsCurrentlyShown = state
dbgPstate = "show" if state else "hide"
if delay[not state] > 0:
_debug(dbgPstate, "delay other")
if type(delayThread) == threading.Thread and delayThread.is_alive():
# two consecutive opposing events cancel out. second event should not be called
_debug(dbgPstate, "delay other, thread alive -> cancel")
cancel.set()
return
if delay[state] > 0 and not immediate:
_debug(dbgPstate + " delay same")
if not (type(delayThread) == threading.Thread and delayThread.is_alive()):
_debug(dbgPstate, "delay same, thread dead -> start wait")
waitingFor = state
cancel.clear()
delayThread = threading.Thread(group=None, target=waitDelay, kwargs={"state": state})
delayThread.daemon = True
delayThread.start()
# a second event setting the same state is silently discarded
return
_debug("state:", dbgPstate)
customcmd = customshow if state else customhide
if customcmd:
subprocess.call(
shPath + " " +
"-c \"echo '" +
customcmd +
"' | awesome-client\"",
shell=True)
for wibox in wiboxes:
subprocess.call(
shPath + " " +
"-c \"echo '" +
hideCommand.format(wibox=wibox, state="true" if state else "false") +
"' | awesome-client\"",
shell=True)
def waitDelay(state=True):
if not cancel.wait(delay[state]/1000):
setWiboxState(state=state, immediate=True)
try:
setWiboxState(False)
proc = subprocess.Popen(['xinput', '--test-xi2', '--root', '3'], stdout=subprocess.PIPE)
field = None
keystate = None
for line in proc.stdout:
l = line.decode("utf-8").strip()
eventmatch = re.match("EVENT type (\\d+) \\(.+\\)", l)
detailmatch = re.match("detail: (\\d+)", l)
if eventmatch:
_debug(eventmatch)
try:
field = "event"
keystate = eventmatch.group(1)
_debug("found event, waiting for detail...")
except IndexError:
field = None
keystate = None
if (field is "event") and detailmatch:
_debug(detailmatch)
try:
if detailmatch.group(1) in superKeys:
_debug("is a super key")
if keystate == "13": # press
nonSuperKeyWasPressed = False
if mode == MODE_TRANSIENT:
_debug("showing wibox")
setWiboxState(True)
if keystate == "14": # release
if mode == MODE_TRANSIENT:
_debug("hiding wibox")
setWiboxState(False)
# Avoid toggling the wibox when a super key is used in conjunction
# with another key.
elif mode == MODE_TOGGLE and not nonSuperKeyWasPressed:
_debug("toggling wibox")
setWiboxState(not wiboxIsCurrentlyShown)
nonSuperKeyWasPressed = False
else:
nonSuperKeyWasPressed = True
except IndexError:
_debug("Couldn't parse keystate number.")
pass
finally:
field = None
keystate = None
except KeyboardInterrupt:
pass
finally:
setWiboxState(True, True)
# print("Shutting down")

View File

@ -9,11 +9,13 @@ function run {
run ~/.config/picom/launch.sh
#run ~/.config/awesome/autohidewibox.py ~/.config/awesome/autohidewibox.conf
run ~/setbg.sh
run ~/Scripts/setbg.sh
run dunst
run pulseeffects --gapplication-service
xsetwacom set "Wacom HID 50DB Finger touch" Gesture off
run touchegg
run nm-applet
run /usr/lib/kdeconnectd
run kdeconnect-indicator
run snixembed
#run music_wake.sh

View File

@ -1,4 +1,5 @@
return {
table.unpack(require("config_common")),
widgets = {
top = {
left = {

View File

@ -1,4 +1,5 @@
return {
table.unpack(require("config_common")),
widgets = {
top = {
left = {
@ -30,7 +31,7 @@ return {
}
},
battery = "BAT1",
net_interface = "wlan0",
net_interface = "wlp3s0",
volume = {
options = {"Master", "-D", "pulse"},
sink = "@DEFAULT_SINK@"

View File

@ -354,8 +354,8 @@ vicious.cache(vicious.widgets.bat)
vicious.register(batwidget, vicious.widgets.bat, format_battery, 20, config.battery)
wifiwidget = wibox.widget.textbox()
vicious.cache(vicious.widgets.wifi)
vicious.register(wifiwidget, vicious.widgets.wifi, format_wifi, 3, config.net_interface)
vicious.cache(vicious.widgets.wifiiw)
vicious.register(wifiwidget, vicious.widgets.wifiiw, format_wifi, 3, config.net_interface)
cpuwidget = wibox.widget.textbox()
vicious.cache(vicious.widgets.cpu)
@ -762,10 +762,10 @@ globalkeys = gears.table.join(
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1, nil, true) end,
{description = "decrease the number of columns", group = "layout"}),
awful.key({ modkey, }, "space", function ()
start_switcher();
--start_switcher();
awful.layout.inc( 1);
layout_table[awful.screen.focused().selected_tag] = awful.screen.focused().selected_tag.layout
switcher_timer:again()
--layout_table[awful.screen.focused().selected_tag] = awful.screen.focused().selected_tag.layout
--switcher_timer:again()
end, {description = "select next", group = "layout"}),
awful.key({ modkey, "Shift" }, "space", function ()
start_switcher();
@ -809,19 +809,6 @@ globalkeys = gears.table.join(
{description = "show the menubar", group = "launcher"}),
awful.key({ modkey }, "d", function() rofi_spawn("rofi -show drun -me-select-entry '' -me-accept-entry 'MousePrimary'") end,
{description = "launch rofi", group = "launcher"}),
--[[
awful.key({ modkey, "Shift" }, "m",
function (c)
rofi_spawn("dmenu_script minecraft.sh")
end ,
{description = "Play Minecraft"}),
awful.key({ modkey, "Shift" }, "f",
function (c)
rofi_spawn("dmenu_script factorio.sh")
end ,
{description = "Play Factorio"}),
--]]
awful.key({ modkey, "Shift" }, "g",
function (c)
rofi_spawn("dmenu_script lutris.sh")

@ -1 +1 @@
Subproject commit 76949631dcf79c3f5efdd1d47dd850390123f42a
Subproject commit 3bd7b59b2c8f999f39600ab640856342f6436d7c

Binary file not shown.

View File

@ -10,14 +10,14 @@
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory "~/mpd-links"
music_directory "/home/daan/mpd-links"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
playlist_directory "~/.config/mpd/playlists"
playlist_directory "/home/daan/.config/mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
@ -25,7 +25,7 @@ playlist_directory "~/.config/mpd/playlists"
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
db_file "~/.config/mpd/database"
db_file "/home/daan/.config/mpd/database"
#
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
@ -34,25 +34,25 @@ db_file "~/.config/mpd/database"
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog.
#
#log_file "~/.mpd/log"
#log_file "/home/daan/.mpd/log"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
#pid_file "~/.mpd/pid"
#pid_file "/home/daan/.mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
#
state_file "~/.config/mpd/state"
state_file "/home/daan/.config/mpd/state"
#
# The location of the sticker database. This is a database which
# manages dynamic information attached to songs.
#
sticker_file "~/.config/mpd/sticker.sql"
sticker_file "/home/daan/.config/mpd/sticker.sql"
#
###############################################################################
@ -82,7 +82,7 @@ sticker_file "~/.config/mpd/sticker.sql"
#bind_to_address "any"
#
# And for Unix Socket
#bind_to_address "~/.mpd/socket"
#bind_to_address "/home/daan/.mpd/socket"
#
# This setting is the TCP port that is desired for the daemon to get assigned
# to.

View File

@ -1,7 +1,15 @@
This Will Destroy You/This Will Destroy You - THIS WILL DESTROY YOU - S-T - 01 A Three-Legged Workhorse.flac
This Will Destroy You/This Will Destroy You - THIS WILL DESTROY YOU - S-T - 02 Villa del Refugio.flac
This Will Destroy You/This Will Destroy You - THIS WILL DESTROY YOU - S-T - 03 Threads.flac
This Will Destroy You/This Will Destroy You - THIS WILL DESTROY YOU - S-T - 04 Leather Wings.flac
This Will Destroy You/This Will Destroy You - THIS WILL DESTROY YOU - S-T - 05 The Mighty Rio Grande.flac
This Will Destroy You/This Will Destroy You - THIS WILL DESTROY YOU - S-T - 06 They Move on Tracks of Never-Ending Light.flac
This Will Destroy You/This Will Destroy You - THIS WILL DESTROY YOU - S-T - 07 Burial on the Presidio Banks.flac
Music/This Will Destroy You/Young Mountain/01 Quiet.flac
Music/This Will Destroy You/Young Mountain/02 The World is Our ___.flac
Music/This Will Destroy You/Young Mountain/03 I Believe in Your Victory.flac
Music/This Will Destroy You/Young Mountain/04 Grandfather Clock.flac
Music/This Will Destroy You/Young Mountain/05 Happiness_ Were All in it Together.flac
Music/This Will Destroy You/Young Mountain/06 There are Some Remedies Worse Than the Disease.flac
Music/This Will Destroy You/Young Mountain/07 Sleep.flac
Music/This Will Destroy You/This Will Destroy You/01 A Three-Legged Workhorse.flac
Music/This Will Destroy You/This Will Destroy You/02 Villa Del Refugio.flac
Music/This Will Destroy You/This Will Destroy You/03 Threads.flac
Music/This Will Destroy You/This Will Destroy You/04 Leather Wings.flac
Music/This Will Destroy You/This Will Destroy You/05 The Mighty Rio Grande.flac
Music/This Will Destroy You/This Will Destroy You/06 They Move on Tracks of Never-Ending Light.flac
Music/This Will Destroy You/This Will Destroy You/07 Burial on the Presidio Banks.flac
Music/Various Artists/08 Language of Memory.flac

View File

@ -1,8 +1,7 @@
sw_volume: 34
sw_volume: 37
audio_device_state:1:pulse audio
state: pause
current: 27
time: 29.550000
state: stop
current: 7
random: 0
repeat: 0
single: 0
@ -11,65 +10,15 @@ crossfade: 0
mixrampdb: 0.000000
mixrampdelay: -1.000000
playlist_begin
0:DeezerLoader/Avril Lavigne - Under My Skin/01 - Take Me Away.flac
1:DeezerLoader/Avril Lavigne - Under My Skin/02 - Together.flac
2:DeezerLoader/Avril Lavigne - Under My Skin/03 - Don't Tell Me.flac
3:DeezerLoader/Avril Lavigne - Under My Skin/04 - He Wasn't.flac
4:DeezerLoader/Avril Lavigne - Under My Skin/05 - How Does It Feel.flac
5:DeezerLoader/Avril Lavigne - Under My Skin/06 - My Happy Ending.flac
6:DeezerLoader/Avril Lavigne - Under My Skin/07 - Nobody's Home.flac
7:DeezerLoader/Avril Lavigne - Under My Skin/08 - Forgotten.flac
8:DeezerLoader/Avril Lavigne - Under My Skin/09 - Who Knows.flac
9:DeezerLoader/Avril Lavigne - Under My Skin/10 - Fall To Pieces.flac
10:DeezerLoader/Avril Lavigne - Under My Skin/11 - Freak Out.flac
11:DeezerLoader/Avril Lavigne - Under My Skin/12 - Slipped Away.flac
12:DeezerLoader/Avril Lavigne - Under My Skin/13 - I Always Get What I Want.flac
13:SharedMusic/Paramore - All We Know Is Falling/01 - All We Know.flac
14:SharedMusic/Paramore - All We Know Is Falling/02 - Pressure.flac
15:SharedMusic/Paramore - All We Know Is Falling/03 - Emergency.flac
16:SharedMusic/Paramore - All We Know Is Falling/04 - Brighter.flac
17:SharedMusic/Paramore - All We Know Is Falling/05 - Here We Go Again.flac
18:SharedMusic/Paramore - All We Know Is Falling/06 - Never Let This Go.flac
19:SharedMusic/Paramore - All We Know Is Falling/07 - Whoa.flac
20:SharedMusic/Paramore - All We Know Is Falling/08 - Conspiracy.flac
21:SharedMusic/Paramore - All We Know Is Falling/09 - Franklin.flac
22:SharedMusic/Paramore - All We Know Is Falling/10 - My Heart.flac
23:SharedMusic/Paramore - RIOT!/01 - For A Pessimist, I'm Pretty Optimistic.flac
24:SharedMusic/Paramore - RIOT!/02 - That's What You Get.flac
25:SharedMusic/Paramore - RIOT!/03 - Hallelujah.flac
26:SharedMusic/Paramore - RIOT!/04 - Misery Business.flac
27:SharedMusic/Paramore - RIOT!/05 - When It Rains.flac
28:SharedMusic/Paramore - RIOT!/06 - Let The Flames Begin.flac
29:SharedMusic/Paramore - RIOT!/07 - Miracle.flac
30:SharedMusic/Paramore - RIOT!/08 - crushcrushcrush.flac
31:SharedMusic/Paramore - RIOT!/09 - We Are Broken.flac
32:SharedMusic/Paramore - RIOT!/10 - Fences.flac
33:SharedMusic/Paramore - RIOT!/11 - Born For This.flac
34:SharedMusic/Paramore - RIOT!/12 - Stop This Song (Love Sick Melody) (Bonus Version).flac
35:SharedMusic/Paramore - RIOT!/13- Paramore - Rewind (Demo).flac
36:SharedMusic/Paramore - RIOT!/14 - Emergency (Live Version).flac
37:DeezerLoader/Paramore - brand new eyes/01 - Careful.flac
38:DeezerLoader/Paramore - brand new eyes/02 - Ignorance.flac
39:DeezerLoader/Paramore - brand new eyes/03 - Playing God.flac
40:DeezerLoader/Paramore - brand new eyes/04 - Brick by Boring Brick.flac
41:DeezerLoader/Paramore - brand new eyes/05 - Turn It Off.flac
42:DeezerLoader/Paramore - brand new eyes/06 - The Only Exception.flac
43:DeezerLoader/Paramore - brand new eyes/07 - Feeling Sorry.flac
44:DeezerLoader/Paramore - brand new eyes/08 - Looking Up.flac
45:DeezerLoader/Paramore - brand new eyes/09 - Where the Lines Overlap.flac
46:DeezerLoader/Paramore - brand new eyes/10 - Misguided Ghosts.flac
47:DeezerLoader/Paramore - brand new eyes/11 - All I Wanted.flac
48:DeezerLoader/Avril Lavigne - Let Go/01 - Losing Grip.flac
49:DeezerLoader/Avril Lavigne - Let Go/02 - Complicated.flac
50:DeezerLoader/Avril Lavigne - Let Go/03 - Sk8er Boi.flac
51:DeezerLoader/Avril Lavigne - Let Go/04 - I'm with You.flac
52:DeezerLoader/Avril Lavigne - Let Go/05 - Mobile.flac
53:DeezerLoader/Avril Lavigne - Let Go/06 - Unwanted.flac
54:DeezerLoader/Avril Lavigne - Let Go/07 - Tomorrow.flac
55:DeezerLoader/Avril Lavigne - Let Go/08 - Anything but Ordinary.flac
56:DeezerLoader/Avril Lavigne - Let Go/09 - Things I'll Never Say.flac
57:DeezerLoader/Avril Lavigne - Let Go/10 - My World.flac
58:DeezerLoader/Avril Lavigne - Let Go/11 - Nobody's Fool.flac
59:DeezerLoader/Avril Lavigne - Let Go/12 - Too Much to Ask.flac
60:DeezerLoader/Avril Lavigne - Let Go/13 - Naked.flac
0:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/01 I Need Never Get Old.flac
1:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/02 Howling at Nothing.flac
2:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/03 Trying So Hard Not to Know.flac
3:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/04 Ive Been Failing.flac
4:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/05 S.O.B_.flac
5:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/06 Wasting Time.flac
6:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/07 Thank You.flac
7:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/08 Look It Here.flac
8:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/09 Shake.flac
9:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/10 Id Be Waiting.flac
10:Music/Nathaniel Rateliff & The Night Sweats/Nathaniel Rateliff & The Night Sweats/11 Mellow Out.flac
playlist_end

Binary file not shown.

View File

@ -39,17 +39,29 @@ Plug 'vim-pandoc/vim-rmarkdown'
Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'junegunn/fzf.vim'
Plug 'jvirtanen/vim-octave'
Plug 'dpelle/vim-LanguageTool'
Plug 'sebastianmarkow/deoplete-rust'
call plug#end() " required
filetype plugin indent on " required
autocmd FileType matlab setlocal keywordprg=info\ octave\ --vi-keys\ --index-search
augroup filetypedetect
" Mail
autocmd BufRead,BufNewFile *mutt-* setfiletype mail
augroup END
let g:languagetool_jar = "/home/daan/.local/share/languagetool/languagetool-commandline.jar"
let g:jsx_ext_required = 0
let g:deoplete#enable_at_startup = 1
let g:deoplete#sources#clang#libclang_path = "/usr/lib/libclang.so"
let g:deoplete#sources#clang#clang_header = "/usr/lib/clang"
let g:deoplete#sources#rust#racer_binary='/usr/bin/racer'
let g:deoplete#sources#rust#rust_source_path='/usr/src/rust/src'
let g:deoplete#sources#rust#racer_binary='/home/daan/.cargo/bin/racer'
let g:deoplete#sources#rust#rust_source_path='/home/daan/.local/src/rust/src'
let g:LanguageClient_serverCommands = {
\ 'lua': ['lua-lsp'],
@ -206,9 +218,18 @@ set expandtab
let g:C_Mapfeader = ','
nnoremap <cr> :noh<CR><CR>:<backspace>
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: pumvisible() ? "\<C-n>" : "\<TAB>"
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: "\<TAB>"
let g:deoplete#enable_smart_case = 1
imap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
imap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<S-TAB>"
imap <expr><CR> pumvisible() ? deoplete#close_popup() : "\<CR>"
:tnoremap <Esc> <C-\><C-n>

View File

@ -17,7 +17,6 @@ inactive-opacity = 1.0;
active-opacity = 1.0;
frame-opacity = 0.7;
inactive-opacity-override = false;
alpha-step = 0.06;
inactive-dim = 0.0;
blur-kern = "3x3box";
blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
@ -33,7 +32,6 @@ detect-client-opacity = true;
refresh-rate = 0;
vsync = false;
dbe = false;
paint-on-overlay = true;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;

39
.zshrc
View File

@ -1,9 +1,11 @@
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="$PATH:$HOME/go/bin:$HOME/.cargo/bin"
export PATH="$PATH:$HOME/go/bin:$HOME/.cargo/bin:$HOME/.gem/ruby/2.7.0/bin"
export ZSH=/usr/share/oh-my-zsh
[[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh
# Path to your oh-my-zsh installation.
#POWERLEVEL9K_MODE='nerdfont-complete'
@ -68,7 +70,7 @@ alias nodeindex="node lib/index.js"
plugins=(
git
archlinux
k tig gitfast colored-man colorize command-not-found cp dirhistory autojump sudo zsh-syntax-highlighting
tig gitfast colorize command-not-found cp dirhistory sudo zsh-syntax-highlighting
)
ZSH_COMPDUMP=/tmp/zcompdump-$USER
@ -145,7 +147,7 @@ export WORKON_HOME=~/Documents/Development/Python/virtualenvs
py() {
PY_PREV_DIR=$PWD
source "$1/bin/activate"
# source "$1/bin/activate" # commented out by conda initialize
}
depy() {
@ -202,6 +204,9 @@ alias vim="nvim"
alias vi="vim"
alias v="vi"
alias sys="systemctl"
alias sysu="systemctl --user"
# Scripts
alias rotate="~/.config/i3/rotate.sh"
@ -210,13 +215,21 @@ alias ant="JAVA_HOME=/usr/lib/jvm/java-11-openjdk ant"
source "tp"
alias riolu="mpv https://twitch.tv/riolutm"
twitch() {
$BROWSER "https://twitch.tv/popout/$1/chat" &
mpv "https://twitch.tv/$1"
}
zoommode() {
echo "Loading v4l2loopback module..."
sudo modprobe v4l2loopback
echo "Loading PulseAudio null-source..."
pactl load-module module-null-source source_name=null
}
alias ls=exa
alias l="exa -l"
# /!\ do not use with zsh-autosuggestions
@ -236,3 +249,19 @@ eval $(thefuck --alias)
alias config='/usr/bin/git --git-dir=/home/daan/.cfg/ --work-tree=/home/daan'
alias config='/usr/bin/git --git-dir=/home/daan/.cfg/ --work-tree=/home/daan'
#source /home/daan/.local/bin/tp
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
#__conda_setup="$('/usr/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
#if [ $? -eq 0 ]; then
#eval "$__conda_setup"
#else
#if [ -f "/usr/etc/profile.d/conda.sh" ]; then
#. "/usr/etc/profile.d/conda.sh"
#else
#export PATH="/usr/bin:$PATH"
#fi
#fi
#unset __conda_setup
# <<< conda initialize <<<

View File

@ -1,6 +0,0 @@
#!/bin/sh
DIR="/home/daan/Pictures/wallpapers/"
FILE=$(ls $DIR | shuf -n 1)
feh --bg-fill "$DIR/$FILE"
#wal -i "$DIR/$FILE"