Post 2469539 by tija@pl.smuglo.li
 (DIR) More posts by tija@pl.smuglo.li
 (DIR) Post #2443499 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T19:41:42.610363Z
       
       2 likes, 0 repeats
       
       ok so I got the hang of using #i3 now. xfce4 and plasma are still installed. How tf do I get my mouse themes under control? In certain windows like the terminal my mouse is gigantic, in my broswer it has the wrong theme etc
       
 (DIR) Post #2443517 by nether@bsd.moe
       2018-12-30T19:42:47.840238Z
       
       0 likes, 0 repeats
       
       @igeljaeger thats either a gtk scaling issue, discrepancy with your dpi wrt. xrandr and/or nvidia driver settings, or both
       
 (DIR) Post #2443524 by nether@bsd.moe
       2018-12-30T19:43:30.561176Z
       
       0 likes, 0 repeats
       
       @igeljaeger and that also sounds like a gtk theming issue, check your gtk theme chooser thingy
       
 (DIR) Post #2443549 by orekix@aria.company
       2018-12-30T19:44:42.796669Z
       
       1 likes, 0 repeats
       
       @igeljaeger are you running i3 standalone or as a replacement for the window manager in xfce/plasma?check your gtkrc too
       
 (DIR) Post #2443663 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T19:52:14.745797Z
       
       0 likes, 0 repeats
       
       @orekix standalone
       
 (DIR) Post #2443678 by orekix@aria.company
       2018-12-30T19:53:04.353279Z
       
       0 likes, 0 repeats
       
       @igeljaeger yea check your themes, do you have any flatpak/snap applications with those issues too? those never integrate well outside of gnome/plasma
       
 (DIR) Post #2443680 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T19:53:12.546814Z
       
       0 likes, 0 repeats
       
       @nether I dont have such a thing. If you mean the xfce4 one, that one doesn't change anything. It's normal in Thunar for example. But gigantic in steam
       
 (DIR) Post #2443730 by orekix@aria.company
       2018-12-30T19:55:45.218187Z
       
       0 likes, 0 repeats
       
       @igeljaeger @nether >I don't have such a thinginstall lxappearance, works great outside of DEs
       
 (DIR) Post #2443739 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T19:56:39.803973Z
       
       0 likes, 0 repeats
       
       @orekix @nether I used that. I can only change themes there but not the size of the cursor
       
 (DIR) Post #2443837 by orekix@aria.company
       2018-12-30T20:04:06.917172Z
       
       0 likes, 0 repeats
       
       @igeljaeger @nether what's in your gtkrc files?
       
 (DIR) Post #2443849 by dwmatiz@sealion.club
       2018-12-30T19:55:53+00:00
       
       0 likes, 0 repeats
       
       include the desired cursor theme in your Xresources file and gtk3's settings.ini
       
 (DIR) Post #2444457 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T20:31:48.778945Z
       
       0 likes, 0 repeats
       
       @dwmatiz uuhScreenshot_2018-12-30_21-31-28.…
       
 (DIR) Post #2444485 by roka@pl.smuglo.li
       2018-12-30T20:33:55.407568Z
       
       0 likes, 0 repeats
       
       @igeljaeger @dwmatiz $HOME/.X{defaults, resources}
       
 (DIR) Post #2444488 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T20:33:59.965432Z
       
       0 likes, 0 repeats
       
       @orekix @nether nothing that indicates my cursor theme or size as far as I can tell (~/.config/gtkrc and ~/.config/gtkrc-2.0)
       
 (DIR) Post #2444516 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T20:35:04.129989Z
       
       0 likes, 0 repeats
       
       @roka @dwmatizScreenshot_2018-12-30_21-34-39.…
       
 (DIR) Post #2444528 by orekix@aria.company
       2018-12-30T20:35:25.636897Z
       
       1 likes, 0 repeats
       
       @igeljaeger @roka @dwmatiz create the file
       
 (DIR) Post #2444536 by dwmatiz@sealion.club
       2018-12-30T20:34:54+00:00
       
       1 likes, 0 repeats
       
       ~/.Xresources  Xcursor.theme: your_cursor Xcursor.size: your_size
       
 (DIR) Post #2444605 by roka@pl.smuglo.li
       2018-12-30T20:38:32.800264Z
       
       2 likes, 0 repeats
       
       @dwmatiz @igeljaeger you can apply changes immediately by using xrdb -merge <path>. Omittance of merge switch will clear entirety of resources and supplant them with contents of that file.
       
 (DIR) Post #2444950 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T20:53:17.528911Z
       
       0 likes, 0 repeats
       
       @roka @dwmatiz I restarted and dwmatiz's method worked! But there's a bunch of other stuff that it hasn't saved like my keyboard layout ('setxkbmap de' wasnt saved after a reboot) nor my wallpapers (used software called "nitrogen" for that)
       
 (DIR) Post #2445050 by roka@pl.smuglo.li
       2018-12-30T20:59:42.204385Z
       
       1 likes, 0 repeats
       
       @igeljaeger @dwmatiz setxkbmap doesn't save its settings, just put it in your .xsession or .xinitrc
       
 (DIR) Post #2445645 by igeljaeger@the.hedgehoghunter.club
       2018-12-30T21:28:29.130443Z
       
       1 likes, 0 repeats
       
       @roka @dwmatiz @orekix @netherthanks for helping out :hi:
       
 (DIR) Post #2469378 by tija@pl.smuglo.li
       2018-12-31T13:07:11.603589Z
       
       1 likes, 0 repeats
       
       @igeljaeger Just a couple of advices for a setup with bare i3wm. At the end of the article there would be a link to example setup.THEME CONTROLTo get themes under control is tricky: GTK 2, GTK 3 and QT applications will use each their own theme. For GTK 2 you can use lxappearance or edit ~/.gtkrc-2.0 by hand (it may have included files).For GTK 3 there’s only gtk-theme-switch, which is pretty rudimentary tool. Editing settings by hand is probably the only good way – the configs are under ~/.config/gtk-3.0/.For QT there is one tool, qtconfig -qt4 (the -qt4 switch is for the tool UI which is build upon QT-4, the app will change theme for QT-5 apps).~/.Xresources contains a kind of registry held within X server, the toolkit may or may not respect this old way of telling the applications how they should behave. Some applications read their personal (non toolkit bound) options from the X resources database.To achieve a uniform look you need- twin themes for each toolkit, e.g. Adwaita;- qt5-styleplugins (the name is volatile, I’d search for .*qt.*style.*);- export in the environment QT_QPA_PLATFORMTHEME=gtk2.About the environment part see below.<1/4>
       
 (DIR) Post #2469423 by tija@pl.smuglo.li
       2018-12-31T13:09:15.926339Z
       
       1 likes, 0 repeats
       
       @igeljaeger LOADING i3Loading bare i3 has several complications, for you will have to to replace the jobs, that a display manager (gdm, kdm, lxdm…) was doing for you: launching X, registering in consolekit etc.Starting an X serverLet’s assume, that there is no DM, and a computer boots into a TTY with a login prompt. When you log in in a TTY, the shell assigned to your user is launched. You can change the default shell with # usermod -s bash usernameAssuming, that the default shell is bash, the configs are read in the following order: /etc/bash/bashrc → ~/.bash_profileThe latter usually has just one line that reads ~/.bashrc – the file where user settings are commonly stored.In the .bashrc we should add the following lines:[ ! -v DISPLAY -a "`tty`" = /dev/tty1 ] && {# startx IGNORES ~/.xserverrc options if something passed beyond -- !exec startx -- -config .env/xorg.conf -nolisten tcp  &>/tmp/x.log # … -- -verbose 5 -logverbose=5 -listen tcp}This says “If DISPLAY variable is not set (i.e. we are not in a graphic environment yet) and the current TTY number is 1 (what leaves TTY 2–6 for normal use for a case when we need them), then launch startx”. Then after -- we specify options that go for the internals (xinit and Xorg). Unless you plan using X built-in RDP for remote connections (or if you plan run Xephyr within X), you should disable TCP listening. Logs are written in /tmp, because /var/log/ may or may not be writeable for a regular user. As the current directory for a freshly launched shell is $HOME, .env resides within it. You can, however, put your config files elsewhere under $HOME, they only should be readable.<2/4>
       
 (DIR) Post #2469450 by tija@pl.smuglo.li
       2018-12-31T13:10:06.730108Z
       
       1 likes, 0 repeats
       
       @igeljaeger Starting the window managerOnce X server is launched, it executes ~/.xinitrc. There a window manager should start.Generally, the following would suffice to put in ~/.xinitrc.#! /usr/bin/env basheval exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3 -c ~/.env/i3.config &>/dev/nullSome applications are made with an assumption, that they run within a user session scope, and if they do not find that scope, they refuse to start – it looks for them like your desktop environment is broken or somebody is trying to hack in your session remotely. Hence ck-launch-session. Some GUI applications use a bus, which helps to orchestrate events within a graphic environment (tray, popups etc.). Those will refuse to start, if they couldn’t connect to such a bus, hence dbus-launch. ck-launch-session may not start for various reasons, mostly they are bound to lacking a kernel module or not having it loaded. Make sure, that your kernel has the following settings:CONFIG_USB_SUSPEND=y – needed for working with USB devices, especially external hubs and USB HDD.CONFIG_IDE=n – when enabled, it breaks udisks and udev.CONFIG_AUDITSYSCALL=y – needed for maintaining authentications(?). If you intend to use a display manager, this is required to have.It would be wise to have a copy of that line commented, so in case i3 would no start, it would write verbose logs:# eval exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3 -c ~/.env/i3.config --shmlog-size=26214400 -V -d all >/tmp/i3.stdout 2>/tmp/i3.stderrExtending the environmentThe beginning of ~/.xinitrc is a handy place for various jobs like setting a wallpaper or loading keyboard settings – Xorg is already started, but the window manager is not spawned yet. It is a good place to export environment variables needed for graphic applications. It all grows into a heavy structure, and better put in a separate file, that we would call from ~/.xinitrc. This way when some command in the window manager loading chain doesn’t work, we would find these lines faster. So, let’s change to the beginning of ~/.xinitrc to#! /usr/bin/env bashsource ~/.preload.shAnd stuff ~/.preload.sh with various handy commands:#  Set brightness on a laptopxbacklight -set 55#  Uniform look of Qt and Gtk applicationsexport QT_QPA_PLATFORMTHEME=gtk2#  Find the last file dropped in ~/.env/wallpapers#  and set it as the wallpaperwallp="$HOME/.env/wallpapers/$(ls -1tr ~/.env/wallpapers/ | tail -n1)"hsetroot -solid \#000000 -alpha ${1:-200} -brightness ${2:-0.07} -full "$wallp"#  Cleaning ever growing cache directories.echo "Cleaning `du -hsx ~/.local/share/gvfs-metadata | cut -f1` in ~/…/gvfs-metadata"rm -rf ~/.local/share/gvfs-metadataecho "Cleaning `du -hsx ~/.maildir/new | cut -f1` in ~/.maildir/new"find ~/.maildir/new -type f -print0 | xargs -0 -I {} rm -f {}echo "Cleaning /tmp"find  /tmp -type d \( -iname ".com.vivaldi*" -o -iname ".org.chromium*" -o -iname "i3-$USER*" -o -iname "clipboardcache*" \) -print0 | xargs -0 -I {} rm -f {}echo 'Cleaning ~/.mpv/watch_later'find  ~/.mpv/watch_later -type f  -mtime +365  -delete#  Loading keyboard settingsxkbcomp ~/.env/xkbcomp.xkb $DISPLAY#  Setting NumLocknumlockx offnumlockx on#  Keyboard auto-repeat on#  NB "xset r on" doesn’t work.xset r#  Start kbdd to keep different layouts for each windowkillall kbddsleep 1kbdd#  Make all keys sticky#xkbset sticky -twokey -latchlock#  Reset mouse acceleration/threshold#  Should be#  $ xset q | grep accel#  acceleration:  2/1    threshold:  4#xset m default#  Loading ~/.Xresources to Xorgxrdb ~/.Xresources#  Helping X server to find localised Terminusxset +fp /usr/share/fonts/terminus && xset fp rehash#  Disabling screensaverxset s off#  Setting standby and off time#  Go to standby after 3 hours and off nine minutes laterxset dpms $((60*60*3)) 0 $((60*63*3))#  Set default web browserxdg-settings  set default-web-browser  firefoxFile ~/.preload.sh would be a good place to launch ssh-agent or gpg-agent.<3/4>
       
 (DIR) Post #2469539 by tija@pl.smuglo.li
       2018-12-31T13:13:18.134951Z
       
       1 likes, 0 repeats
       
       @igeljaeger ADDENDUMIt is worth mentioning, that if you don’t run pulseaudio, some applications must be told about it by settingdrivers = alsa,null,wave in ~/.alsoftrc.Example .bashrc, .Xresources, .xinitrc and .preload.sh.Managing a persistent keyboard map is described in this README.Spawning user applications and controlling where, when and how they spawn is better after i3 is launched, hence there would be another “preload” file, called from i3.config. An example could be found in autostart.sh.When you use only a window manager, some applications will not like to be killed, when you close it. They will greet you with “Oops, a crash happened! Let’s spend ten minutes on restore?” the next time when you launch them. Thus a graceful exit should be implemented for particular applications. A working example of that can be found in on_quit.sh<4/4>
       
 (DIR) Post #2478149 by mirro@social.the-wired.club
       2018-12-31T17:56:01.706629Z
       
       1 likes, 0 repeats
       
       @igeljaeger gtkrcLook that upI can give you mine if you want as template
       
 (DIR) Post #2479378 by mirro@social.the-wired.club
       2018-12-31T18:53:44.717814Z
       
       1 likes, 0 repeats
       
       @igeljaeger2018-12-31-195300_459x306_scrot…