New answers tagged

0

The correct command is - for_window [instance="guake"] floating enable Add the above to ~/.i3/config in order to allow guake to function and float as normal.


3

If kernel was compiled with CONFIG_IKCONFIG_PROC, you will have the original .config in /proc/config.gz So in that case to see the full options: zcat /proc/config.gz Checking in my Armbian/Jessie with kernel 4.5.2 and BTRFS: $zgrep -i btrfs /proc/config.gz CONFIG_BTRFS_FS=y CONFIG_BTRFS_FS_POSIX_ACL=y # CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set # ...


-1

Have a look at sysctl. It can be used to query and set kernel parameters. sudo sysctl -a will display all current values.


0

I would like to suggest you to put all your aliases and functions in a file, tipically ~/.bash_aliases. If not yet present, you can add in your .bashrc (or wherever you need) those lines: # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See ...


1

I would put environment variables in .bash_login or .bash_profile, since they are (when exported) inherited to subshells and don't need to be reset for every shell invocation. Not that resetting them would cost practically anything, but in case I want to set an envvar to something else for the duration of a subshell. That's hard to do if the .bashrc ...


1

Since the question is essentially asking for opinions, you will get different answers. A good design practice, for example, uses as few places as possible to provide a given feature. Some put information like this in the system area to reduce the amount of work done by users to customize their shell environment. In my environment, I use the terminal ...


1

I put PS1 code in bashrc all the time. My code is as follows: export PS1="\[\e[01;37m\][\[\e[0m\]\[\e[01;32m\]\u\[\e[0m\]\[\e[00;37m\]@\[\e[0m\]\[\e[01;34m\]\h\[\e[0m\]\[\e[00;37m\] \[\e[0m\]\[\e[00;37m\]\t\[\e[0m\]\[\e[01;37m\] \W \e[1;37m(\e[1;32m|\e[1;33m|\e[1;31m|\e[1;37m]\\$ \[\e[0m\]" I use a different PS1 for root (/root/.bashrc) - red username, ...


0

The third mouse button can be enabled system wide by adding a file /etc/X11/xorg.conf.d/20-3rdbutton.conf with the following content: Section "InputClass" Identifier "middle button" MatchIsPointer "on" MatchDriver "libinput" Option "MiddleEmulation" "on" EndSection I use this on my HP nc2400 with Fedora 23, and it works. The source of this ...


0

You can put: MAILTO="" at the beginning of your crontab file and that will prevent it from trying to send email.


1

Something like: ssh host; echo "Reconnect?"; while read; do ssh host; echo "Reconnect?"; done in your command should do the job. It connects to your host and when the connection is lost, it asks you for a reconnect. Or just simply as you wanted: ssh host; bash will connect to your host and when the connection ends, it gives you new shell


0

I still haven't found anything in terms of a configuration web server as stated in my question, but this article addresses the general problem really well and lays out the current options. Essentially options include: Wi-Fi protected setup including USB flash drive configured from an AP (rare) PIN Push button (possibly the best solution when there is ...


1

Where to export After having read https://bitbucket.org/padavan/rt-n56u/wiki/EN/UsingCron a good way to export configuration variables for both crontab and shell usage, is to insert the /opt related variables into /opt/etc/profile. Where and how to source To use ("source") the variables in cron it is suggested to: create a shell-wrapper script source ...


2

I use a simple function: mpvs() { local file="$1" mpv --sub-file="${file%.*}".srt "$file" } If you want to test for the presence of subtitle files with different extensions, you could use a more complex approach: #!/usr/bin/env bash # Play subtitles for a film if they exist movie="$1" mdir="${movie%/*}" name="${movie##*/}" cd "$mdir" for file in ...



Top 50 recent answers are included