[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:misc:devastator_scroll_lock [2019/12/26 22:25 (UTC)] – [Sources] slackjeffhowtos:misc:devastator_scroll_lock [2020/01/02 18:21 (UTC)] (current) slackjeff
Line 2: Line 2:
  
  
-I recently received a donation from cryptographic friend Ayr, a Devastator CM-STORM keyboard from Cool Master.+I recently received a donation from cryptographic friend Ayr, a Devastator CM-STORM keyboard from Cooler Master.
  
 A keyboard that is beautiful, soft and enjoyable to use. However I faced a very annoying problem on my I3wm. Because it is a keyboard that has LEDs, its function works through Scroll Lock. A keyboard that is beautiful, soft and enjoyable to use. However I faced a very annoying problem on my I3wm. Because it is a keyboard that has LEDs, its function works through Scroll Lock.
Line 18: Line 18:
 ===== Disabling Scroll Lock ===== ===== Disabling Scroll Lock =====
  
-The first joke is to use the xev command, you will need to enable and disable Scroll Lock to be able to see its value. To do this send the output to a file for better visibility. +The first joke is to use the ''xev'' command, you will need to enable and disable Scroll Lock to be able to see its value. To do this send the output to a file for better visibility. 
-After that we will use grep to filter and awk to get only the fields we need.+After that we will use ''grep'' to filter and ''awk'' to get only the fields we need.
  
 <code> <code>
-$ xev > resultado+$ xev > result
 $ grep "Scroll" result | awk '{print $3,$4}' $ grep "Scroll" result | awk '{print $3,$4}'
 keycode 78 keycode 78
Line 36: Line 36:
 Note that the Scroll Lock Keycode is 78, let's now disable Scroll Lock, so you won't have any problems with it. Note that the Scroll Lock Keycode is 78, let's now disable Scroll Lock, so you won't have any problems with it.
  
-For this purpose we will use the xmodmap command, its syntax is: xmodmap -e 'keycode <value> = <action>'.+For this purpose we will use the''xmodmap'' command, its syntax is: ''xmodmap -e 'keycode <value> = <action>' ''.
  
-In <value> you will use the value captured with the xev command, and after the = sign you will leave it blank.+In <value> you will use the value captured with the ''xev'' command, and after the = sign you will leave it blank.
  
 <code> <code>
Line 101: Line 101:
 </code> </code>
  
-Now let's add in the i3 configuration file, .config /i3/config present in your user's home the following command:+Now let's add in the i3 configuration file, ''.config/i3/config'' present in your user's home the following command:
  
 <code> <code>
Line 114: Line 114:
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
-{{tag>howtos template}}+{{tag>howtos misc led_devastator scroll_lock author_slackjeff}}
 howtos:misc:devastator_scroll_lock ()